- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 13 Apr 2022 16:39:22 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Add a .layer attribute to CSSSTyleSheet`, and agreed to the following: * `RESOLVED: Add .layerName to CSSStyleSheet as a readonly attribute.` <details><summary>The full IRC log of that discussion</summary> <TabAtkins> Topic: Add a .layer attribute to CSSSTyleSheet<br> <TabAtkins> github: https://github.com/w3c/csswg-drafts/issues/7002<br> <TabAtkins> fantasai: So it just seemed reasonable to add, and discussion suggests it should be called .layerName to match the CSSLayerRule<br> <TabAtkins> astearns: And using .layerName is preferable to switching both to .layer?<br> <TabAtkins> fantasai: I'm open to both.<br> <smfr> prefer layerName<br> <TabAtkins> astearns: I think .layerName does suggest a string rather than an object, so it seems slightly more clear<br> <emilio> q+<br> <astearns> ack emilio<br> <TabAtkins> emilio: does @import allow us to set this on import, so we can make it immutable?<br> <fantasai_> TabAtkins: If this stylesheet is reflecting from a <link>, that's changeable in HTML<br> <fantasai_> TabAtkins: maybe we could make it immutable in the API?<br> <TabAtkins> emilio: Link mutations already have steps to recreate the stylesheet object<br> <TabAtkins> emilio: So that would trigger the same as changing media=''<br> <TabAtkins> emilio: Which creates a new stylesheet<br> <TabAtkins> TabAtkins: What about constructed stylesheets?<br> <TabAtkins> emilio: Hopefully we can set it in the constructor - it already has an option bag for things like baseURI, which also is immutable. Hopefully we can follow the same pattern.<br> <TabAtkins> TabAtkins: I'm fine with that.<br> <TabAtkins> emilio: The original issue uses @import syntax, which requires using an extra argument object somewhere to preserve the mime type...<br> <TabAtkins> TabAtkins: Don't understand<br> <TabAtkins> emilio: When you use importSheet()<br> <TabAtkins> scratch last line<br> <TabAtkins> emilio: When you use `import sheet from style.css`, can you set the layer there?<br> <TabAtkins> emilio: I think in JS you have a trailing object that lets you set the mimetype?<br> <TabAtkins> TabAtkins: Yes, but I'm unsure whether that's meant to be just assertions or can have extra data<br> <TabAtkins> astearns: Sounds like we can resolve on .layerName?<br> <TabAtkins> TabAtkins: And on makign it readonly unless that's killer for the JS ipmort syntax<br> <TabAtkins> emilio: Agreed<br> <TabAtkins> astearns: objections?<br> <TabAtkins> RESOLVED: Add .layerName to CSSStyleSheet as a readonly attribute.<br> <emeyer> scribenick emeyer<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7002#issuecomment-1098263680 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 13 April 2022 16:39:24 UTC