Enum Class CSSDocument.ComplianceMode

All Implemented Interfaces:
Serializable, Comparable<CSSDocument.ComplianceMode>, java.lang.constant.Constable
Enclosing interface:

public static enum CSSDocument.ComplianceMode extends Enum<CSSDocument.ComplianceMode>
The style computations operate under a compliance mode. Two modes are supported: STRICT and QUIRKS.

QUIRKS and STRICT differ in the matching of class and ID selectors, and the default user agent sheet is slightly different.

  • Enum Constant Details

  • Method Details

    • values

      public static CSSDocument.ComplianceMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CSSDocument.ComplianceMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null