- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Wed, 26 Feb 2025 10:21:56 +0000
- To: public-css-archive@w3.org
I think step 12 confused me by refering to *"the attribute"* (of the owner node), whereas the procedure creates a *constructed* style sheet, so there can be no attribute. The [HTML spec](https://html.spec.whatwg.org/multipage/semantics.html#update-a-style-block) says that the `media` attribute of the owner node is a *reference*: > `media`: The media attribute of element. > > **Note:** This is a reference to the (possibly absent at this time) attribute, rather than a copy of the attribute's current value. CSSOM defines what happens when the attribute is dynamically set, changed, or removed. I do not know what is a reference to an HTML attribute. Wouldn't it work if the HTML spec said to set `CSSStyleSheet.media.mediaText` whenever the `media` attribute is updated? Then a `MediaList` used to construct a `CSSStyleSheet` could be reflected *bidirectionally*, by sharing their internal media query list, as suggested in my previous comment. -- GitHub Notification of comment by cdoublev Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11778#issuecomment-2684538728 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 26 February 2025 10:21:57 UTC