- From: Shaw Jia via GitHub <sysbot+gh@w3.org>
- Date: Sat, 22 Apr 2023 18:58:54 +0000
- To: public-css-archive@w3.org
miragecraft has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-nesting] Allow CSS nesting for inline styles == Whether CSS nesting works for inline styles isn't actually defined in the specs, as far as I can find. So I was under the assumption that I could do: ```css <ul style=" & a { font-weight:bold; &:link {color:green} &:is(:hover, :active) {color:red} }"> <li><a href="#">Home</a></li> <li><a href="#">Blog</a></li> <li><a href="#">About</a></li> </ul> ``` And found out that no, it doesn't work. I'm hoping that this behaviour can be defined at the very least, and allowed if at all possible. By allowing nesting to work with inline styles, it creates a very useful method to scope CSS styles. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8752 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 22 April 2023 18:58:56 UTC