Re: [csswg-drafts] [css-conditional-5][css-nesting-1] Feature detection for nesting (#8399)

> However, what's reasonable, and should be encouraged, would be:
>
> This way the author can use a preprocessor to generate the larger, un-nested stylesheet, but the user of a newer browser doesn't have to pay the download cost.

This is a tangent and I don't want to derail this thread but `@imports ".." not supports(selector(&))` doesn't help browsers without nesting support. Even if `supports` queries for `@import` ship simultaneously with nesting. Any `@imports` with a `supports` condition will be downloaded but never applied.

In theory it is the best method, but because it never shipped it isn't practically useful.

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


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

Received on Sunday, 5 February 2023 21:47:44 UTC