You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I assumed that the entire declaration should be dropped. But, reading further, in Example 15, we see that var() should be substituted with the unset keyword. Not sure what would be the correct behavior here, so I'm leaving figuring this out to someone who actually knows what he is doing :^)
Operating system
Linux
Steps to reproduce
N/A
Expected behavior
Border shouldn't show up at all
Actual behavior
It's rendered
URL for a reduced test case
N/A
HTML/SVG/etc. source for a reduced test case
<style>
body {
border: solid 10px var(--nope);
}
</style>
Log output and (if possible) backtrace
N/A
Screenshots or screen recordings
Chrome
Ladybird
Build flags or config settings
No response
Contribute a patch?
I’ll contribute a patch for this myself.
The text was updated successfully, but these errors were encountered:
The example 15 from the spec you cited does not apply here since --not-a-color has a value of 20px in it, instead of the guaranteed-invalid value, which is what a CSS variable is set to initially, before you assign anything to it.
Summary
See reduced test case and screenshots.
I tried to read through the spec to figure out what's going on here, but I'm left quite confused...
From spec:
So I assumed that the entire declaration should be dropped. But, reading further, in Example 15, we see that
var()
should be substituted with theunset
keyword. Not sure what would be the correct behavior here, so I'm leaving figuring this out to someone who actually knows what he is doing :^)Operating system
Linux
Steps to reproduce
N/A
Expected behavior
Border shouldn't show up at all
Actual behavior
It's rendered
URL for a reduced test case
N/A
HTML/SVG/etc. source for a reduced test case
Log output and (if possible) backtrace
Screenshots or screen recordings
Build flags or config settings
No response
Contribute a patch?
The text was updated successfully, but these errors were encountered: