Re: [csswg-drafts] [css-syntax] Review requested of new Parsing text (#8834)

Can you please clarify (not necessarily in the spec) the meaning of *valid in the current context* in *consume a declaration*, *consume an at-rule*, *consume a qualified rule*.

I first thought it was about what rules/properties/descriptors are accepted in the style sheet or rule:

  > The CSS parser is agnostic as to the contents of blocks [...].
  >
  > Accompanying prose must define what is valid and invalid in this context.

But then I wondered if this their grammar must also be valid, and how the two validations answer the new parsing needs of nested style rules.

Does it correspond to the validations in [`isValidInContext()`](https://github.com/tabatkins/parse-css/blob/0c4d5540274a9e5bcf599732a13ff7ec581264f9/parse-css.js#L1128) in your CSS parser?

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


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

Received on Thursday, 10 August 2023 06:17:35 UTC