Re: [csswg-drafts] [mediaqueries-5][css-conditional-5][css-mixins-1] Order dependent rules and adopted stylesheets (#13041)

> FWIW, “insignificant” here means, IIRC, <0.1% of total style time for us (where style time is already fairly small compared to JavaScript and others).

Not sure looking at total style time is the right thing to measure here, FWIW. The thing that worries me a bit is affecting first paint / page load performance, for which building rulesets etc is a critical part of...

@sorvell: it seems to me https://github.com/w3c/csswg-drafts/issues/12627#issuecomment-3488556563 is somewhat tangential and is about whether these names would even be applicable across trees (which I don't think they should, I don't think any other such thing does). Custom properties work like that because of inheritance, but that's the exception, not the rule...

I guess it depends on whether you take `@mixin` as a feature of the stylesheet or something more dynamic like `@keyframe` tho... But `@mixin` last I checked could "instantiate" nested rules and so on, so we can't easily move it to style application time (let me know if I'm missing something @andruud). But for ~everything we've been generally strict about name pollution inside shadow trees.

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


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

Received on Wednesday, 5 November 2025 15:51:39 UTC