Class CssInheritance
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.resolve.CssInheritance
-
- All Implemented Interfaces:
IStyleInheritance
public class CssInheritance extends java.lang.Object implements IStyleInheritance
Helper class that allows you to check if a property is inheritable.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<java.lang.String>
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 Summary
Constructors Constructor Description CssInheritance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isInheritable(java.lang.String cssProperty)
Checks if a property is inheritable.
-
-
-
Method Detail
-
isInheritable
public boolean isInheritable(java.lang.String cssProperty)
Checks if a property is inheritable.If css custom property (--*) is encountered always returns true, since css variables are always inheritable
- Specified by:
isInheritable
in interfaceIStyleInheritance
- Parameters:
cssProperty
- the CSS property- Returns:
- true, if the property is inheritable
-
-