Class SvgAttributeInheritance

java.lang.Object
com.itextpdf.svg.css.impl.SvgAttributeInheritance
All Implemented Interfaces:
IStyleInheritance

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

    • inheritableProperties

      private static final Set<String> inheritableProperties
      Set of inheritable SVG style attributes in accordance with "https://www.w3.org/TR/SVG2/propidx.html".
  • Constructor Details

    • SvgAttributeInheritance

      public SvgAttributeInheritance()
  • Method Details

    • isInheritable

      public boolean isInheritable(String cssProperty)
      Description copied from interface: IStyleInheritance
      Checks if a property or attribute is inheritable is inheritable.
      Specified by:
      isInheritable in interface IStyleInheritance
      Parameters:
      cssProperty - the identifier for property
      Returns:
      true, if the property is inheritable, false otherwise