-
Notifications
You must be signed in to change notification settings - Fork 719
[css-syntax-3] Allow positioned {}-block in @property/initial-value
#11737
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
Comments
Ah, I see, since I'm not particularly sad about that. Allowing {} with other junk in a custom property is mostly there for back-compat. If you're registering a custom property, it's very likely to be with intent to use it for CSS stuff, where that sort of value would be completley invalid anyway. (You'd need to pair with a So, I'm inclined to just leave this as no change: you cannot express certain initial values for a registered custom property, even tho they are technically syntactically valid values for the property to have. |
So defining it with I did not mention |
I also did not mention that positioned {}-block in And if the intention is to early exit consuming nested rules in (edit) They still need to abort parsing |
Per spec, a positioned {}-block is allowed for a custom property, but not for
@property/initial-value
:A possible solution could be to apply this only "if
decl
s name is a supported CSS property".However, I think the intention of step 9 is to allow reparsing
a:hover {}
/ avoid reparsing--custom: var(1) {}
, as a qualified rule. But it indifferently returns "nothing". So it could return an "invalid declaration error" instead. Consume a block's contents would also need to be updated accordingly.The text was updated successfully, but these errors were encountered: