- All Implemented Interfaces:
Serializable,Comparable<CssDefaulting>,Constable
CSS Defaulting keywords can be applied to all CSS properties
in HTML and SVG.
References:
- CSS Cascading and Inheritance Level 4, Chapter 7. Defaulting
- w3.org
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf the cascaded value of a property is the "inherit" keyword, the property's specified and computed values are the inherited value.If the cascaded value of a property is the "initial" keyword, the property's specified value is its initial value.If the cascaded value of a property is the revert keyword, the behavior depends on the origin to which the declaration belongs: user-agent origin Equivalent to unset user origin Rolls back the cascaded value to the user-agent level, so that the specified value is calculated as if no author-level or user-level rules were specified for this property on this element. author origin Rolls back the cascaded value to the user level, so that the specified value is calculated as if no author-level rules were specified for this property on this element.If the cascaded value of a property is the "unset" keyword, then if it is an inherited property, this is treated as inherit, and if it is not, this is treated as initial. -
Method Summary
Modifier and TypeMethodDescriptionstatic CssDefaultingReturns the enum constant of this class with the specified name.static CssDefaulting[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIAL
If the cascaded value of a property is the "initial" keyword, the property's specified value is its initial value. -
INHERIT
If the cascaded value of a property is the "inherit" keyword, the property's specified and computed values are the inherited value. -
UNSET
If the cascaded value of a property is the "unset" keyword, then if it is an inherited property, this is treated as inherit, and if it is not, this is treated as initial.This keyword effectively erases all declared values occurring earlier in the cascade, correctly inheriting or not as appropriate for the property (or all longhands of a shorthand).
-
REVERT
If the cascaded value of a property is the revert keyword, the behavior depends on the origin to which the declaration belongs:- user-agent origin
- Equivalent to unset
- user origin
- Rolls back the cascaded value to the user-agent level, so that the specified value is calculated as if no author-level or user-level rules were specified for this property on this element.
- author origin
- Rolls back the cascaded value to the user level, so that the specified value is calculated as if no author-level rules were specified for this property on this element. For the purpose of revert, this origin includes the Animation origin.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-