| Class | Description | |
|---|---|---|
decoration-thicknessSets text-decoration-thickness via --decoration-thickness. E.g. 2px. CSS Rules Usage
The .decoration-thickness
class is flagged as a value-driven selector.
The variable --decoration-thickness is required. Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The Shorthand
Value-driven classes support a shorthand syntax like CLS Alert
This feature may cause CLS (Cumulative Layout
Shift). Make sure to include a
| .decoration-thickness | Sets text-decoration-thickness via --decoration-thickness. E.g. 2px. |
decoration-from-fontSets text-decoration-thickness to from-font, using the font's recommended thickness. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .decoration-from-font | Sets text-decoration-thickness to from-font, using the font's recommended thickness. |
decoration-autoSets text-decoration-thickness to auto, using the browser's default thickness. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .decoration-auto | Sets text-decoration-thickness to auto, using the browser's default thickness. |