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

If it's a readonly attribute, how do we support the JS import syntax (which is the major use case I'd like to support)? We don't explicitly call its constructor so we can't pass the layer name in that way.

> <TabAtkins> emilio: When you use `import sheet from style.css`, can you set the layer there?
> <TabAtkins> emilio: I think in JS you have a trailing object that lets you set the mimetype?
> <TabAtkins> TabAtkins: Yes, but I'm unsure whether that's meant to be just assertions or can have extra data

@tabatkins When you said "yes", were you talking about setting the layer or the mimetype?

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


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

Received on Wednesday, 20 April 2022 18:09:46 UTC