Re: [csswg-drafts] Does nested @layer syntax work for declaring layer order? (#5849)

Another implication of this:

```css
@layer out1 in1;
@layer out2;
@layer out1;
@layer out1 in2;
```

- The first line of that example establishes _both_ `out1` and `out1 in1` in the layer order
- The sort is managed per-layer-scope, so future sub-layers of `out1` (eg `out1 in2`) are sorted with their parent/sibling layers before any other top-level layers

Despite `out1 in2` being defined last, the result is:

- out1
- out1 in1
- out1 in2
- out2

It's not clear to me if that needs further clarification, but re-opening for thoughts.

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


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

Received on Thursday, 14 January 2021 19:04:21 UTC