[csswg-drafts] Pull Request: [cssom-1] Merge constructable stylesheets into CSSOM (https://lists.w3.org/Archives/Public/www-style/2020Feb/0012.html)

mfreed7 has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [cssom-1] Merge constructable stylesheets into CSSOM (https://lists.w3.org/Archives/Public/www-style/2020Feb/0012.html) ==
[cssom-1] Merge constructable stylesheets into CSSOM (https://lists.w3.org/Archives/Public/www-style/2020Feb/0012.html)

This is a first PR to merge the [Constructable Stylesheets proposal](https://wicg.github.io/construct-stylesheets/) into the CSSOM spec. This was resolved in Feb 2020: https://lists.w3.org/Archives/Public/www-style/2020Feb/0012.html. There are several sub-resolutions there, a few of which are handled here:

 - [RESOLVED: CSS() is merged into CSSOM1 (~~either @emilio or @rakina~~ @mfreed7 doing so)](https://lists.w3.org/Archives/Public/www-style/2020Feb/0012.html).
  - [RESOLVED: Remove title and alternate from constructor](https://github.com/WICG/construct-stylesheets/issues/105#issuecomment-577704271).
  - [RESOLVED: Add base URL constructor argument for sole purpose of resolving relative URLs in stylesheet, and location of the stylesheet remains that of the document](https://github.com/WICG/construct-stylesheets/issues/95#issuecomment-577708534).
  - [RESOLVED: Disallow @import in all constructable stylesheet apis with a note that we're doing it to match current state of modules and this might relax in future](https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418). Plus the [modifications discussed in this comment](https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-642300024).

...and a few of which will follow this PR:

  - [RESOLVED: Constructed style sheets to always go after](https://github.com/WICG/construct-stylesheets/issues/93#issuecomment-577713131). (Which spec does this live inside?)
  - Modify URL parsing to take the new `CSSStyleSheet` `base URL` into account. (Suggestions appreciated for where exactly these specs live. These two perhaps? [referrer-policy](https://www.w3.org/TR/referrer-policy/#integration-with-css) [css-values-4](https://drafts.csswg.org/css-values-4/#relative-urls))
  - [Make adopted stylesheets ~~a CSSStyleSheetList and add the appropriate add/remove methods to the document or shadowRoot interface~~ an ObservableArray](https://github.com/WICG/construct-stylesheets/issues/45#issuecomment-825055766).


P.S. This is my first CSSWG PR. Please go easy on me and let me know what I can do better. 😄 

See https://github.com/w3c/csswg-drafts/pull/6304


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

Received on Saturday, 22 May 2021 17:21:24 UTC