Re: [csswg-drafts] [css-nesting] Conflicts in proposal with Sass/Less (#2937)

On the topic of confusion, it might be worth adding some examples or discussion directly into the spec to clarify the limitations of the nesting selector not building up simple selectors as some pre-processors do.  In particular, there is a line in the spec which can be read in different ways, and might give the impression that it is possible to do, specifically:

```
An ampersand is unambiguously separable from an ident, tho, so there is no problem with it preceding a type selector, like &div.
```

I had to read that a few times to understand what it was saying, and it's the only place in the spec that does not include a space after the nesting selector.  

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


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

Received on Wednesday, 28 April 2021 05:13:32 UTC