Class SelectorSpecificity

java.lang.Object
org.htmlunit.cssparser.parser.selector.SelectorSpecificity
All Implemented Interfaces:
Serializable, Comparable<SelectorSpecificity>

public class SelectorSpecificity extends Object implements Comparable<SelectorSpecificity>, Serializable
Calculates a selector's specificity.
Author:
Marc Guillemot, Ronald Brill
See Also:
  • Field Details

    • FROM_STYLE_ATTRIBUTE

      public static final SelectorSpecificity FROM_STYLE_ATTRIBUTE
      The specificity for declarations made in the style attributes of an element.
    • DEFAULT_STYLE_ATTRIBUTE

      public static final SelectorSpecificity DEFAULT_STYLE_ATTRIBUTE
      The specificity for browser defaults.
  • Constructor Details

    • SelectorSpecificity

      public SelectorSpecificity(Selector selector)
      Ctor.
      Parameters:
      selector - the selector to read from
  • Method Details