Re: [csswg-drafts] [css-syntax] Give up on <urange> production? (#8835)

@SimonSapin The new Nesting behavior we agreed on is that, in nesting contexts, you first attempt to parse a declaration and grammar-validate it; if that fails, you back up and instead parse as a rule. This is how we resolved the grammar overlap with `foo:bar ...` looking like both a declaration and a rule. You can see this in <https://drafts.csswg.org/css-syntax/#consume-block-contents> (note that the "validate" check is done in <https://drafts.csswg.org/css-syntax/#consume-declaration>).

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8835#issuecomment-1550117261 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 16 May 2023 17:54:22 UTC