- From: jonjohnjohnson via GitHub <sysbot+gh@w3.org>
- Date: Tue, 19 Mar 2019 22:58:05 +0000
- To: public-css-archive@w3.org
Aside from...
> The Sass maintainers consider that syntax (building up a single simple selector thru concatenation of characters) to have been a serious mistake that they wish they could undo. - @tabatkins – https://github.com/w3c/csswg-drafts/issues/2937
...your example showing single simple selector concatenation, I believe your "main use case for wanting to do this is when a parent has a hover/focus state that affects the styling of a nested child element" is covered in the current draft like so?
```css
.parent {
@nest &:hover .child {
/* .parent:hover .child { ... } */
}
}
```
See Example 5 in [The Nesting At-Rule: @nest](https://drafts.csswg.org/css-nesting-1/#at-nest)
Related...
>...if env() is used in selectors, which is one of the things that author-defined env() is intended to be useful for. - @tabatkins – https://github.com/w3c/csswg-drafts/issues/3285#issuecomment-436760193
--
GitHub Notification of comment by jonjohnjohnson
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3747#issuecomment-474616514 using your GitHub account
Received on Tuesday, 19 March 2019 22:58:07 UTC