Re: [csswg-drafts] [css-cascade-5] Add a R/W `CSSStyleSheet.layer` attribute for the layer name (#7002)

Based on my memory from the CSS Modules TAG review (and a quick re-read to refresh my memory) in w3ctag/design-reviews#405, part of the idea of CSS modules is definitely that they are a new mechanism that allows the same stylesheet object to be referenced from multiple places, and then be used by adding to `adoptedStyleSheets` in multiple places.  But it's not clear to me that there's any way to use a CSS module in a way that involves a layer name.

However, there was an issue related to `@import` (which I think is currently forbidden from CSS Modules) that was being deferred at the time of that TAG review.  Depending on how that issue is resolved, it maybe be possible to use [CSS `@import` syntax](https://drafts.csswg.org/css-cascade-5/#at-import) to extend the module graph, and thus create layer-name-specific imports that refer to sheets in the module graph.  I'm not sure what eventually happened with that issue.

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


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

Received on Thursday, 15 September 2022 21:23:58 UTC