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 TypeMethodDescriptionboolean
isInheritable
(String cssProperty) Checks if a property is inheritable.
-
Field Details
-
INHERITABLE_PROPERTIES
Set of inheritable properties in accordance with "http://www.w3schools.com/cssref/" and "https://developer.mozilla.org/en-US/docs/Web/CSS/Reference"
-
-
Constructor Details
-
CssInheritance
public CssInheritance()
-
-
Method Details
-
isInheritable
Checks if a property is inheritable.- Specified by:
isInheritable
in interfaceIStyleInheritance
- Parameters:
cssProperty
- the CSS property- Returns:
- true, if the property is inheritable
-