Re: [csswg-drafts] [css-nesting] Make nesting work in `:host` rules (#9496)

Currently all browsers support nesting with `:host`, e.g: [chrome](https://issues.chromium.org/issues/40266948)

What I care more about is how to use nested in `:host()`

Swap `:scope` and `:host()`, let the same css work in shadow dom and light dom:

```css
/** shadow dom */
@scope(:host(*)) {
  :scope {
    ...
  }
}


/** light dom */
:scope {
    ...
  }
```




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


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

Received on Thursday, 5 June 2025 03:39:06 UTC