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 mapstyleProperty- the CSS propertyparentPropValue- the parent properties valueparentFontSizeString- is a font size of parent elementinheritanceRules- set of inheritance rules- Returns:
- a map of updated styles after merging parent and child style declarations
-