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

Separate imports of a CSSStyleSheet from a given URL will share the same stylesheet instance. This is analogous to how multiple imports of a given JS module reuse the same module.

That seems to be problematic for `layerName`; we'd need a way to guarantee that importing with a new layerName triggers a new instance of the sheet to be created, which isn't currently something supported by import assertions.

-- 
GitHub Notification of comment by dandclark
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7002#issuecomment-1248647241 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:24:40 UTC