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

_@LeaVerou wrote:_
> I think I prefer my second idea from that comment:

Doesn't that idea involve wrapping it all in brackets again, and thus bring us back to the double-indentation issue? That's why I liked the string-based delineators of `@nested;` (or `@nestStart ... @nestEnd`)—there's no implicit indentation needed.

_@vrubleg wrote:_
> The more I think about using `{{` and `}}` for blocks with nesting only, the more I like it.

One problem with consecutive double brackets like this is that they would have a conflict with server-side languages such as Twig (and I think Liquid, Handlebars, etc). While those languages typically generate HTML, they can also be called upon to generate CSS as well (in the form of in-page `<style> ... </style>` tags), so that could be problematic.


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


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

Received on Thursday, 11 November 2021 13:40:15 UTC