- From: andruud via GitHub <noreply@w3.org>
- Date: Wed, 21 Jan 2026 23:44:10 +0000
- To: public-css-archive@w3.org
> we only need one extra pass for all these rules, which I understand to be the case? Correct. > the TLDR of this approach seems to be: > > * Do a first pass over all potentially-matching rules to figure out dependencies between supports / media / layer. > * Do cycle resolution / resolve the final layer order. Details a bit TBD I guess? But seems reasonable. > * Do a second pass over rules again with the "frozen" set of conditions. > > Did I understand it correctly? Yes, if by "conditions" you mean the maps from name=>custom-media-rule, name=>custom-supports-rule, name=>mixin-rule (which are indeed frozen during the second pass). > Just to confirm, these two examples behave the same with the proposal, right? [...] Yes. > Right now defining a new layer is basically bumping a counter, this complicates it significantly, but oh well :') Ouch. Yeah, it's complicated. But overall, my feeling is that it's worth it to get an authoring experience free of (additional) landmines. -- GitHub Notification of comment by andruud Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13041#issuecomment-3781662087 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 21 January 2026 23:44:11 UTC