-
Notifications
You must be signed in to change notification settings - Fork 715
[css-values-4] Clarify property value ranges #9133
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
Right, they're no longer explicitly written in grammars, but they are in the value space of every property.
I'm not sure what you mean by "property substitution values" here.
You're right, our wording wasn't quite correct. Fixed. |
It is a language error, sorry. I meant substitution property values. I particularly mean To be transparent/honest, this questions follows this #8823 (comment): I would like to know if, when parsing a value against Otherwise I am satisfied with your changes. Thanks! 👌 |
No, I think if a spec said If something did want to parse an entire property, they could phrase it as Do you have a specific example you're asking about? (I'm going to go ahead and close the issue, tho, as you're satisfied with the resolution overall.) |
So CSS wide-keywords are explicitly excluded from property value ranges...
... whereas substitution values ("etc") are not, which may be confusing. It seems that this difference only exists because
You have gotten to the heart of the matter so I hope there is no need for an example. How would you represent the "entire You may create an object that const grammar = {
name: 'background-image',
type: 'property',
value: '<bg-image>#',
} The result from parsing But it seems inappropriate to me that |
Some parts of the definition of property value ranges (eg.
<'color'>
) seem confusing to me.CSS-wide keywords are only included in the value definition of a few properties defined in CSS 2 that are not superseded in a later spec.
I suggest this explicit definition:
At least, property substitution values should also be excluded.
#8823 (comment)
If I am not mistaken, this rule targets
#
in value definitions of coordinating list-valued properties. It targets the repetition of a value that can be declared alone for a property.For example, to match
<'property'>
withproperty
defined with<foo> | <bar>
,<number>
in<foo>
can be repeated but not in<bar>
:If I am not mistaken in the example above, this type of grammar definition should obviously be avoided, and I suggest to define this rule with an explicit connection to the concept of coordinating list property group.
The text was updated successfully, but these errors were encountered: