Re: [csswg-drafts] [css-cascade] What is a valid at-rule? Or what is an invalid at-rule? (#9175)

Maybe something like in [Selectors - 3.9. Invalid Selectors and Error Handling](https://drafts.csswg.org/selectors-4/#invalid):

  > A rule is invalid if either:
  > 
  >   - it is invalid in the context: it appears somewhere where it is not allowed (after another rule, the top-level of the style sheet, or in another rule)
  >   - it is invalid according to the CSS grammar:
  >     - it is an at-rule whose name is unrecognized
  >     - its prelude has an invalid grammar
  >     - it has a block but is not allowed to have one
  >     - it is missing a mandatory declaration
  >     - etc

(I have no strong opinion on whether defining this explicitly is needed)

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


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

Received on Saturday, 12 August 2023 11:54:06 UTC