Re: [csswg-drafts] [css-nesting] Syntax suggestion (#4748)

If we're wanting to annoy preprocessor users as little as possible, then I think the "wrap nested selectors in a block" approach would be easier to transition to than the "append `@nest`/`@` and/or `&` to each individual selector" approach.

If we go down that route, it would be great if the chars used to define said block were one of the ones already considered "containing chars" by code editors... i.e., the chars or char pairs that can easily be placed around a selection: `' '`, `" "`, `( )`, `[ ]`, or `{ }`.

To be honest, I'm still trying to figure out if a JSON-esque approach makes any sense:

```
div {
    color: red;
    nested: (
        img {
            display: block;
        }
    );
}
```

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


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

Received on Wednesday, 29 September 2021 09:22:11 UTC