Class CssVariableUtil
java.lang.Object
com.itextpdf.styledxmlparser.util.CssVariableUtil
Utility class for resolving css variables in declarations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsVarExpression(String expression) Checks for var expression.static booleanisCssVariable(String property) Checks property for css variable.static voidresolveCssVariables(Map<String, String> styles) Resolve all css variables in style map
-
Method Details
-
resolveCssVariables
Resolve all css variables in style map- Parameters:
-
styles- css styles map
-
containsVarExpression
Checks for var expression.- Parameters:
-
expression- css expression to check - Returns:
- true if there is a var expression, false otherwise
-
isCssVariable
Checks property for css variable.- Parameters:
-
property- css property to check - Returns:
- true if it is a css variable, false otherwise
-