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

And to answer the question of how to handle the above on the pre-processing side, I imagine Less would do something like a compile flag to support nesting and force `&` to be explicit for flattening output. Such that:
```less
.component {
  :hover { a: b; }
  &:hover { a: b; }
}
```
Would produce the following output (with nested output flag on):
```css
.component {
  :hover {
    a: b;
  }
}
.component:hover {
  a: b;
}
```
That's _much_ easier to support than trying to decide which `&`s get kept and which ones get used to flatten output.

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

Received on Wednesday, 18 July 2018 15:39:46 UTC