[css-cascade] Do we need a keyword similar to `revert`, but for cascade layers? #5793
Labels
Comments
|
We should make sure that the preshint rules are given their own layer so that this works to unwind author rules without affecting preshint mapping. See #5836. |
|
In another conversation, @fantasai suggested This would roll back the cascaded value of a declaration to the previous layer with a value specified, as if no current-layer rules were specified for this property on this element. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cascade Level 4 added the
revertkeyword for rolling back values to their definition in the previous origin.In the draft Cascade 5 specification we provide cascade layers, which are conceptually similar to origins – but controlled by authors. It might be helpful to provide a similar syntax for rolling back to the value defined in previous layers.
The text was updated successfully, but these errors were encountered: