-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS variable (custom property) with fallback as nothing compiles to no fallback #3245
Comments
At first I thought this was really bad: the spec parses the second argument as a The only exception to this is The upshot of all this is that we can get away with simply adding special-case logic for an empty second argument without having to deprecate the way we parse the second argument when it does exist. |
Hi @nex3 - any news? :) |
When there's news, we'll update this issue. If you'd like the process to move more quickly, please feel free to contribute a spec update. |
This sets the stage for modifying it to fix #3245
This sets the stage for modifying it to fix #3245
This sets the stage for modifying it to fix #3245
This sets the stage for modifying it to fix #3245
This sets the stage for modifying it to fix #3245
This is now out for review as a fast-track proposal in #3338. I'll leave it open until Tuesday unless anyone has any objections or suggestions. |
https://www.sassmeister.com/gist/64d412cd7fcc65d2fd09d10c89cb2e0f
The
,
at the end is valid CSS and is no mistake and should not be removed after compiling.Read more about the use-case in this article:
https://css-tricks.com/optional-custom-property-values-trick/
W3 ref:
https://www.w3.org/TR/css-variables-1/#using-variables
The text was updated successfully, but these errors were encountered: