Re: [csswg-drafts] [css-nesting-1] Can we relax the syntax further? (#7961)

> I'm confused. If when the structure is ambiguous you definitely parse as a declaration, that means `fieldset & {...}` will just be an invalid declaration, rather than a rule, which doesn't seem to be what you're suggesting. That's just the existing Option 3.
> 
> If you mean "parse as a declaration but also do X to allow for reinterpreting as a rule later", then it is indeed a per-declaration cost to do X.

I mean _parse as a declaration, but keep its tokens around until the declaration finishes parsing_ (not forever). I suppose that's an extra cost per declaration, but it seems a very small one since, you have these tokens anyway.

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


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

Received on Wednesday, 26 October 2022 19:22:50 UTC