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
{{ message }}
Repository navigation
[css-values] unify CSS wide keywords and defaulting keywords #7170
These keyword definitions are currently scattered throughout the specification, making it easy for other CSS parsers or engine implementers to miss them. e.g.
The definitions are already unified in the Cascade specs (and later levels replace preceding levels, so Cascade 5 is the canonical definition). Values merely mentions them, and points to Cascade for their definition; Fonts mentions them in an example (including the reserved "default" keyword)
Yes, the CSS fonts spec mentions the terms common-keywords|CSS-wide keyword, so can we change them all to CSS-wide keyword in Cascade 5? Too many terms can be confusing and detrimental to communication.
Any identifier which could be misinterpreted as a pre-defined keyword in the font-family value definition, or the common-keywords|CSS-wide keyword values, is not allowed.
Also is it possible to add the "default" keyword to the Explicit Defaulting section in Cascade 5?
Hi @yisibl, we've refactored the spec text around CSS-wide keywords in 9b95cab
For “default”, this is merely excluded from the <custom-ident> production, since it is not a valid CSS-wide keyword anywhere. We are also discussing adding additional keywords to the <custom-ident> exclusion list in #7431.
Closing out this issue, but let us know if there are any remaining problem.
Activity
tabatkins commentedon Mar 25, 2022
The definitions are already unified in the Cascade specs (and later levels replace preceding levels, so Cascade 5 is the canonical definition). Values merely mentions them, and points to Cascade for their definition; Fonts mentions them in an example (including the reserved "default" keyword)
yisibl commentedon Mar 27, 2022
@tabatkins Thank you for your reply.
Yes, the CSS fonts spec mentions the terms
common-keywords|CSS-wide keyword, so can we change them all toCSS-wide keywordin Cascade 5? Too many terms can be confusing and detrimental to communication.Also is it possible to add the "default" keyword to the
Explicit Defaultingsection in Cascade 5?fantasai commentedon Oct 10, 2022
Hi @yisibl, we've refactored the spec text around CSS-wide keywords in 9b95cab
For “default”, this is merely excluded from the
<custom-ident>production, since it is not a valid CSS-wide keyword anywhere. We are also discussing adding additional keywords to the<custom-ident>exclusion list in #7431.Closing out this issue, but let us know if there are any remaining problem.