Re: [csswg-drafts] [css-conditional-3] Stylesheet attached to a document isn't a well-defined concept right now. (#10612)

Copy-paste of #10921 (closed because it is presumably a duplicate of this issue):

  > [`CSSMediaRule.matches`](https://drafts.csswg.org/css-conditional-3/#dom-cssmediarule-matches) must return *"true if the rule is in an stylesheet attached to a document [...]"* but non-constructed stylesheets are not attached to a document.
  >
  > >  - [constructor document](https://drafts.csswg.org/cssom-1/#concept-css-style-sheet-constructor-document)
  > >
  > >    Specified when created. The Document a constructed stylesheet is associated with. Null by default. Only non-null for stylesheets that have constructed flag set.
  >
  > What is the reason (if any) to expect `false` for `CSSMediaRule.matches` when accessed via `document.styleSheets`?
  >
  > Reading #4240, it seems unintentional.

I guess there might be a difference between *associated* and *attached* to a document.

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


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

Received on Thursday, 19 September 2024 11:34:16 UTC