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

> I'm *really* not a fan of the additional set of braces; it adds *two* indents for each level of nesting.

I'm not the biggest fan of it either, but I think it's preferable over the current `& …` / `@nest … & …` proposal. Heck, perhaps in time our eyes would come to appreciate the extra level of indentation as an easy way to visually differentiate nested styles?

That said, what if we used some other separator character or series of characters to define a nesting block—one that doesn't have an implication of indentation?

I can't think of any single char that would fit the bill, but what about something like this?

```
div {
    color: red;
    ==== /* or ---- or &&&& or whatever */
    p {
        color: blue;
    }
    blockquote {
        zoom: 420;
    }
    ====
}
```



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


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

Received on Tuesday, 28 September 2021 07:52:09 UTC