Re: [csswg-drafts] [cssom-1] Incorrect handling of `media` in Create a constructed `CSSStyleSheet`? (#11778)

Thanks Oriol. `MediaList` is intentionally *not* shared between constructed stylesheets, indeed:

  - https://github.com/WICG/construct-stylesheets/issues/13
  - https://github.com/WICG/construct-stylesheets/issues/75

Wouldn't it be clearer worded this way?

  > If the `media` attribute of options is a string, create a MediaList object from the string and assign it as `sheet`’s media. **Otherwise, create a MediaList object from `media.mediaText` and set it as `sheet`'s media?**

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


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

Received on Monday, 21 April 2025 06:14:31 UTC