Re: [csswg-drafts] [css-nesting] keeping track of what can and can not be nested (#9114)

> Alternatively making it possible to scrape this aspect so that it can be part of something like webref  would also help.

I would be interested too. Rule definition tables may be more appropriate than production rules:

```
      Name:  foo
   Prelude:  <prelude>
     Block:  <block-contents>
Properties:  list of accepted/excluded properties
     Rules:  list of accepted/excluded rules
   Cascade:  yes, ... (optional - but conventional - prose)
```

New CSS rules (or updates to the above features) are rare, though.

---

> I think it would even be reasonable if only `css-nesting` defines which at-rules can be nested.

This list in CSS Nesting ([2.2. Nesting Other At-Rules](https://drafts.csswg.org/css-nesting-1/#conditionals)) may need to be updated:

  > Specifically, these rules are capable of being nested group rules:
  >
  > - all the conditional group rules (`@media`, `@supports`)
  > - `@layer`
  > - `@scope`
  > - `@container`

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


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

Received on Tuesday, 25 July 2023 12:01:42 UTC