[css-null-keyword] null
keyword
#9914
Labels
Closed as Duplicate
Closed as Question Answered
Used when the issue is more of a question than a problem, and it's been answered.
css-cascade-6
css-variables-2
Imagine the following css:
As far as I know it's not possible to set the value of
--bg
to anything which will result to the property to become invalid. Maybe anull
keyword could help us out here, which would basically mean: ignore this line.An other use case would be:
CSS:
HTML:
Demo: https://codepen.io/MartijnCuppens/pen/PoLavRM?editors=1100
Would a
null
keyword be interesting or are there existing workarounds?The text was updated successfully, but these errors were encountered: