W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

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

From: Miriam Suzanne via GitHub <sysbot+gh@w3.org>
Date: Thu, 14 Jan 2021 19:04:20 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-760405397-1610651059-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:25 UTC