- From: Toby Mackenzie via GitHub <sysbot+gh@w3.org>
- Date: Tue, 25 Jul 2023 15:02:05 +0000
- To: public-css-archive@w3.org
Interesting. Some comments: The parent selector `&` uses `:is()`, so complicating the selector shouldn't break the `&&` unless there is a pseudo-element involved. As such this technique can be used even for element selectors, which wasn't previously possible with CSS. SASS at the least doesn't support `&&` and it sounds like in the future they will move to be compatible with the spec, which would imply `:is()`. I'm not too familiar with layers and they look interesting. But it appears they cannot be used to override any styles outside of a layer, eg from MDN: "…any styles declared outside of a layer will override styles declared in a layer, regardless of specificity". One of the primary use cases I've had for this technique is to override specificity set in other people's code, which I can't touch. If I can `@import` them, layers would help. Otherwise, it doesn't seem so. -- GitHub Notification of comment by tobymackenzie Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9113#issuecomment-1650012146 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 25 July 2023 15:02:06 UTC