[csswg-drafts] [css-nesting] Treating nesting as syntactic sugar? (#8698)

plinss has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-nesting] Treating nesting as syntactic sugar? ==
Disclaimer, I'm not sure I'm actually in favor of this, but I thought I'd throw it out there for discussion.

During the transition period until authors can reliaibly just serve stylesheets containing nesting, authors will either need to transpile their stylesheets into non-nested form, differentially serve nested and non-nested versions, or somehow use a polyfill to convert nested stylesheets into non-nested form for older browsers.

Each of these cases complicates any code that uses the CSSOM to interact with the stylesheet. What if we treated nesting as parse-time syntactic sugar and always generated the CSSOM in the un-nested form?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8698 using your GitHub account


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

Received on Monday, 10 April 2023 17:11:29 UTC