Re: [csswg-drafts] [css-nesting-1] Syntax Invites Errors (#7834)

> I feel the utility and readability of & in other positions isn't that great anyway.

I think a common use case of this is theming :

```css
.foo {
  color: green;

  .some-class-for-blue-theme & { /* class likely added to `<body>` */
    color: blue;
  }
}
```

I don't think the direction should be to create an even more limited/strict syntax as authors clearly want a more flexible one.

In my opinion proposal 1 has the best tools to write correct selectors that match the authors intention. (this does not mean that they like writing them this way)
But proposal 3 has relative selector syntax.

I think we can have both, not less than either.

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


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

Received on Wednesday, 19 October 2022 07:18:03 UTC