Interface CssInheritanceRules

All Known Implementing Classes:
DefaultCssInheritanceRules

public interface CssInheritanceRules
Implementations of this interface determine the inheritance rules of CSS properties on tag basis and on property level.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Validate inheritance of any CSS property for the given tag.
    boolean
    Validate inheritance of parent tag CSS.
  • Method Details

    • inheritCssTag

      boolean inheritCssTag(String tag)
      Validate inheritance of parent tag CSS.
      Parameters:
      tag - the tag
      Returns:
      true if the tag can inherit CSS from it's parent tag, false otherwise.
    • inheritCssSelector

      boolean inheritCssSelector(Tag tag, String key)
      Validate inheritance of any CSS property for the given tag.
      Parameters:
      tag - the tag
      key - the css property
      Returns:
      true if this property can be inherited from the parent tag for the given tag, false otherwise.