- From: Romain Menke via GitHub <sysbot+gh@w3.org>
- Date: Thu, 06 Oct 2022 10:21:28 +0000
- To: public-css-archive@w3.org
> This also means you could write the rules in a SASS compatible way.
Also reading a lot of statements on Twitter that this change would allow you to copy/paste from Sass. But that would not be true as I understand it.
Sass and the nesting specification would still be different for complex selectors.
```css
.a .b {
@nest .c & {
color: green
}
}
```
sass :
```css
.c .a .b { /* "a" is a descendant of "c" */
color: green;
}
```
as currently specced :
```
.c :is(.a .b) { /* "a" and "c" might be the same element, or one might be an ancestor of the other */
color: green;
}
```
I think it is misleading to present this change to the specification as "compatible with Sass".
--
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7834#issuecomment-1269758575 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 6 October 2022 10:21:30 UTC