Re: [csswg-drafts] [css-syntax][css-nesting] Design of `@nest` rule (#10234)

> One question that would affect my opinion of whether the CSSOM questions here matter: what's the chance that at some point in the future we'll allow the nesting syntax inside the `style` attribute? (This sort of syntax has been proposed and [specified](https://www.w3.org/TR/2002/WD-css-style-attr-20020515) in the past, but it didn't get traction at the time.) I think the CSSOM is much more relevant for the style attribute than it is for style sheets, since it's more widely used there.

My understanding is that this is basically planned, and it's just a matter of resource allocation. Inline style nesting is a huge use case.

-----

Since it seems hard to get consensus on making this rule less author facing, could we explore going the other way? I.e. keeping is as author-facing, and trying to make it useful in some way.

E.g. someone mentioned that it could be used for grouping. That definitely makes sense. [Other threads](https://github.com/w3c/csswg-drafts/issues/5629) discuss a potential `@sheet` rule that basically does named grouping. I wonder if these two could be combined. Just brainstorming here. What would be some low hanging, easy-ish to implement functionality that could make this rule actually useful?

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


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

Received on Wednesday, 24 April 2024 21:13:32 UTC