-
Notifications
You must be signed in to change notification settings - Fork 715
[css-transforms-2] Potentially invalid syntax for perspective()
#7582
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
Yup, that's an error. |
Is it a syntax style error, or more? Where is this style defined?
|
The Syntax extension of the CSS grammar defines how at-rules and functions (and other things) are written in the grammar. It doesn't have any special rules for functions (or anything else) to automatically create groups in the grammar. Perhaps it should, tho? Hm. |
What are the cases (other than function arguments) where a group should be created automatically? Do these rules also explain why a group is created for the types specific to I guess the reason for creating a group that is not strictly required, is to make a grammar parser produce a nested list with the corresponding value(s). From this perspective, it would have been nice to create groups for the types specific to I'm sorry for this noise on a closed issue. Please tell me if I should create a new issue. Related: #2921
|
The CSS Transforms 2 spec currently defines the
perspective()
function as:perspective( <length [0,∞]> | none )
In the syntax above, the functional notation accepts one of two arguments (using the single bar operator). Now, I can't find anything specifically in css-values-5 that forbids this, but I believe that these arguments should be wrapped in a group as in:
perspective( [ <length [0,∞]> | none ] )
Could some please provide clarification on if this actually is an issue?
csswg-drafts/css-transforms-2/Overview.bs
Line 1003 in 77f40b2
The text was updated successfully, but these errors were encountered: