- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Tue, 19 Aug 2025 13:45:47 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-cascade-6] Should the scope proximity calculation be impacted by nesting scopes?`, and agreed to the following: * `RESOLVED: Close no change for now, unless someone comes back with clear use cases + proposal` * `RESOLVED: Republished a new WD of css-cascade-6` <details><summary>The full IRC log of that discussion</summary> <emilio> miriam: we've discussed a few times, and there's a request for more research but unsure what the research should be<br> <emilio> ... right now we flatten scope proximity to a single value based on nearest scope<br> <emilio> ... it's probably a decent proxy for that<br> <emilio> ... nobody knows what the use case for nested scopes is, but you can do it<br> <emilio> ... not clear that is different from narrowing the scope<br> <emilio> ... I think the flat version works ok<br> <emilio> ... it'd be reasonable to lookup nested scope, but would be difficult to implement, and probably not necessary for authors<br> <emilio> ... other proposals in the thread I didn't quite like<br> <matthieud> q+<br> <emilio> emilio: so proposal is no change?<br> <emilio> miriam: I'd go for that but open to other options<br> <astearns> ack fantasai<br> <TabAtkins> +1 to no change<br> <emilio> +1<br> <TabAtkins> q+<br> <emilio> fantasai: I think what would happen most likely is for nesting scopes like different color schemes<br> <emilio> ... and I have wide / narrow layout, in a way they nest<br> <emilio> ... what's likely to happen is that the author was thinking about narrowing<br> <matthieud> @scope my-color-theme-purple { @ scope dark { ... color: something-dark-and-purple }}<br> <emilio> ... and so for some rules you care about the outer scope and for others the inner<br> <emilio> ... and we don't know which one is important<br> <emilio> ... I think we don't know the answer about which one is important<br> <emilio> ... in that thing they're likely to be different thing<br> <emilio> ... that's why we have both specificity and layering as escape hatches<br> <emilio> fantasai: neither layering or specificity control it because the question is which type of container I'm closest to (dark or light for example)<br> <emilio> ... if you have nested scopes you might have dark -> disabled or whatever<br> <emilio> ... but you might not know which proximity is more important<br> <emilio> ... I remember looking at it and thinking it can't be obvious which one to pick<br> <emilio> ... it's clear that if you're scoped double into something you want it more heavily weighted that only one level<br> <emilio> ... but in which way it's not clear<br> <emilio> miriam: hard to respond without an example but remember that scope is per-selector<br> <emilio> ... so I can ?? and then they'd look at the right scope<br> <emilio> ... and I can define a scope for my color and for my components and so on<br> <emilio> ... and they'd respond to the proximity of their scope independently<br> <astearns> ack matthieud<br> <emilio> matthieud: if you have a scope for a purple theme and then one for the dark, you are interested in both<br> <emilio> ... and at the beginning the proximity was ignored for the second one<br> <emilio> ... [example similar to fantasai]<br> <emilio> miriam: you need to care about both for it to become an issue<br> <emilio> ... for that example to become an issue you'd need dark -> light and purple -> green<br> <emilio> matthieud: which I guess can happen?<br> <emilio> ... but again these are only test-cases I write<br> <emilio> miriam: I think it's a bit of a theoretical example<br> <emilio> ... question would be would any of the other proposals solve it?<br> <emilio> ack TabAtkins<br> <astearns> ack TabAtkins<br> <emilio> TabAtkins: from what I can tell, that afaict is solved equally well by just not nesting scopes<br> <emilio> ... just single scopes with .purple.dark, .green.light, .green.dark, .green.dark<br> <emilio> matthieud: they might not be in the same element<br> <emilio> TabAtkins: ah, was wrong<br> <emilio> ... but larger concern is that people find specificity complicated<br> <emilio> ... but the more we try to add specificity-ish things...<br> <emilio> ... adding complexity here is going to give unexpected answers<br> <andruud> +1<br> <emilio> ... eg when they're interleaved<br> <emilio> ... so I'm concerned with adding more complexity<br> <emilio> ... given not every relationship can be represented here<br> <emilio> ... my opinion is that it's not worth the complexity + performance cost<br> <emilio> ... suggested middle-of-the-road compromise where number-of-scopes was also part of the calculation<br> <kizu> https://codepen.io/kizu/pen/gbaeprG — example<br> <emilio> ... but that also doesn't fix any of the issues<br> <emilio> lea: so what are you proposing<br> <emilio> TabAtkins: no change to the spec<br> <emilio> matthieud: we filter by both but proximity of the inner only<br> <emilio> fantasai: I think something's off but don't know how to fix it<br> <emilio> astearns: never has been clear who's going to do the research and dig into other solutions<br> <emilio> ... so I think we should close no change for now<br> <emilio> PROPOSED: Close no change for now<br> <emilio> fantasai: as long as it's clear that can be reopened if a new proposal comes up<br> <fantasai> PROPOSED: Close no change for now, unless someone comes back with clear use cases + proposal<br> <emilio> RESOLVED: Close no change for now, unless someone comes back with clear use cases + proposal<br> <emilio> miriam: this was the last issue of scope<br> <emilio> astearns: should we republish?<br> <emilio> miriam: it's already a WD<br> <emilio> astearns: should we resolve publishing a new WD with the intent that it becomes CR soonish?<br> <miriam> (last issue besides proposals for level 2 features)<br> <emilio> matthieud: yeah if we change proximity it's going to be a webcompat issue<br> <fantasai> level 7? :)<br> <emilio> RESOLVED: Republished a new WD of css-cascade-6<br> <emilio> s/Republished/Republish<br> <miriam> yes, level 7<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10795#issuecomment-3200836319 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 19 August 2025 13:45:48 UTC