Class CssInheritance

java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.CssInheritance
All Implemented Interfaces:
IStyleInheritance

public class CssInheritance extends Object implements IStyleInheritance
Helper class that allows you to check if a property is inheritable.
  • Field Details

    • INHERITABLE_PROPERTIES

      private static final Set<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 Details

    • CssInheritance

      public CssInheritance()
  • Method Details

    • isInheritable

      public boolean isInheritable(String cssProperty)
      Checks if a property is inheritable.
      Specified by:
      isInheritable in interface IStyleInheritance
      Parameters:
      cssProperty - the CSS property
      Returns:
      true, if the property is inheritable