monks/counter_increment
The counter-increment CSS property can be used to increase or decrease the value of the named CSS counters by the specified values, or to prevent all counters or an individual counter’s value from being changed.
If a named counter in the list of space-separated counters and values doesn’t exist, it will be created. If no value is provided for a counter in the list of counters, the counter will be increased by 1.
The counter’s value can be reset to any integer value with the {{cssxref(“counter-reset”)}} CSS property.
Values
pub const none: #(String, String)
- : Indicates that no counter must be increased or decreased. This value can also be used to cancel all counters from being increased or decreased in more specific rules. This is the default value of the property.> [!NOTE]> Using the
nonevalue prevents all counters from being increased or decreased for the selected elements where this rule applies. To prevent only specific counters from being increased or decreased, set theintegervalue as0on the relevant counter(s).
pub fn raw(value: String) -> #(String, String)
Enter a raw string value for counter-increment
pub const revert_layer: #(String, String)