Class CssInheritance
java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.CssInheritance
- All Implemented Interfaces:
IStyleInheritance
Helper class that allows you to check if a property is inheritable.
-
Field Summary
FieldsModifier and TypeFieldDescriptionSet of inheritable properties in accordance with "http://www.w3schools.com/cssref/" and "https://developer.mozilla.org/en-US/docs/Web/CSS/Reference" -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisInheritable(String cssProperty) Checks if a property is inheritable.
-
Field Details
-
INHERITABLE_PROPERTIES
-
-
Constructor Details
-
CssInheritance
public CssInheritance()
-
-
Method Details
-
isInheritable
Checks if a property is inheritable.If css custom property (--*) is encountered always returns true, since css variables are always inheritable
- Specified by:
isInheritablein interfaceIStyleInheritance- Parameters:
cssProperty- the CSS property- Returns:
- true, if the property is inheritable
-