Re: [csswg-drafts] When using @import scope(), are the imported styles 'nested'? (#11756)

@mirisuzanne thank you for this explanation, this also makes it more clear where exactly the difference is noticeable.

Is it then correct that any selector containing either `&` or `:scope` will behave the same even when import with `scope()` doesn't apply nesting?

I think it could be an acceptable tradeoff for bundlers to require authors to always add an explicit `&` or `:scope`. That doesn't actually limit any capability, it only requires authors to do a bit more typing, right?

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


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

Received on Wednesday, 26 February 2025 19:28:05 UTC