Class StyleUtil
java.lang.Object
com.itextpdf.styledxmlparser.util.StyleUtil
Utility class for resolving parent-inheritance of style and attribute declarations.
-
Method Summary
-
Method Details
-
mergeParentStyleDeclaration
public static Map<String,String> mergeParentStyleDeclaration(Map<String, String> styles, String styleProperty, String parentPropValue, String parentFontSizeString, Set<IStyleInheritance> inheritanceRules) Merge parent CSS declarations.- Parameters:
-
styles
- the styles map -
styleProperty
- the CSS property -
parentPropValue
- the parent properties value -
parentFontSizeString
- is a font size of parent element -
inheritanceRules
- set of inheritance rules - Returns:
- a map of updated styles after merging parent and child style declarations
-