Package com.itextpdf.tool.xml.css
Interface CssInheritanceRules
- All Known Implementing Classes:
DefaultCssInheritanceRules
public interface CssInheritanceRules
Implementations of this interface determine the inheritance rules of CSS properties on tag basis and on property level.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
inheritCssSelector
(Tag tag, String key) Validate inheritance of any CSS property for the given tag.boolean
inheritCssTag
(String tag) Validate inheritance of parent tag CSS.
-
Method Details
-
inheritCssTag
Validate inheritance of parent tag CSS.- Parameters:
tag
- the tag- Returns:
- true if the tag can inherit CSS from it's parent tag, false otherwise.
-
inheritCssSelector
Validate inheritance of any CSS property for the given tag.- Parameters:
tag
- the tagkey
- the css property- Returns:
- true if this property can be inherited from the parent tag for the given tag, false otherwise.
-