Skip to content
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

Support hask mark next to curly braces in CSS grammar #249

Open
tidoust opened this issue Mar 13, 2023 · 0 comments
Open

Support hask mark next to curly braces in CSS grammar #249

tidoust opened this issue Mar 13, 2023 · 0 comments

Comments

@tidoust
Copy link

tidoust commented Mar 13, 2023

The CSS Backgrounds Level 4 spec currently defines the value of box-shadow-offset as:

none | <length>{2}#

(the latter part to mean a "comma-separated list of horizontal and vertical offset pairs")

CSSTree's definitionSyntax considers that to be invalid. I suppose that the problem is the use of # next to {2}. Creating a group solves the parsing issue:

none | [<length>{2}]#

The hash-mark-next-to-curly-braces construct is not explicitly accounted for in the CSS Values spec for now, but grouping brackets tend to be skipped in CSS specs when possible, and this construct does not seem ambiguous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant