Re: [csswg-drafts] [css-nesting] Allow CSS nesting for inline styles (#8752)

@myfonj 

> it should not affect its parent

According to the spec, you can apply styles to `&` and `:scope`.

> Authors can also target or explicitly position the [scoping root](https://drafts.csswg.org/selectors-4/#scoping-root) in a selector by including either [:scope](https://drafts.csswg.org/selectors-4/#scope-pseudo) or [&](https://drafts.csswg.org/css-nesting-1/#selectordef-) in a given selector:

https://drafts.csswg.org/css-cascade-6/#example-66991251

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


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

Received on Tuesday, 25 March 2025 04:25:50 UTC