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

> A possible alternative would be adding a method that converts a nested stylesheet to a desugared one (and possibly one to nest everything that can be). That way if an author can get either version of a stylesheet, and wants to only write one set of code to deal with it, they can convert back and forth at runtime...

+1 on that. This provides authors with a simple option to provide a polyfill for older browsers.

> That might make more sense as a library in userland tho.

I'd argue that that would be way harder to do and a lot less performant than a built-in API.

Sebastian

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


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

Received on Saturday, 15 April 2023 06:38:27 UTC