Re: [csswg-drafts] [css-nesting-1] nesting `@scope`, `@layer` and `@media` (#7965)

> I'm not sure what you mean, they're completely polyfillable in the same way https://github.com/media is today - invert the rules so @media/etc is on the top and contains the style rule.

```css
@layer one;

.foo {
  @layer two;
}

@layer three;
```

is equivalent to : 

```css
```css
@layer one;

@layer two;
.foo {}

@layer three;
```
```

Always has layer order : `one`, `two`, `three`
Regardless any elements match the `.foo` rule.

Is that correct?
Because that would indeed be totally fine.
It is specifically making name defining at rules dependant on selector matching that would be problematic for us. (which also doesn't mean anything in the big scheme of things)

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


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

Received on Thursday, 27 October 2022 21:54:25 UTC