-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Constructable Stylesheets & adoptedStyleSheets #204
Comments
Interesting. For my understanding, "csswg-drafts" feels less official, is that just my interpretation, or does this difference actually say something about the progress of this spec at large? |
Link to Webkit Bug: |
Maybe this Bug also: |
In principle the WICG is a group in which specifications are incubated, which then get moved into a working group (such as the CSS WG) which standardises them. |
Here is some potentially additional description and rationale: https://w3c.github.io/webcomponents-cg/#constructable-stylesheets-adoptedstylesheets |
In the MDN short survey on APIs & JavaScript, "Web Components (custom elements, Shadow DOM, etc.)" was the most popular choice by a fairly wide margin, selected by ~39% of survey takers. Web Components was split into many granular proposals, and the survey results don't tell us which aspects web developers want the most, but it's fair to say that something about Web Components is important. (I'm posting this comment on each of the split proposals.) |
Thank you for proposing Constructable Stylesheets & adoptedStyleSheets for inclusion in Interop 2023. We are pleased to let you know that this proposal was accepted as part of the Web Components focus area. You can follow the progress of this Focus Area on the Interop 2023 dashboard. For an overview of our process, see the proposal selection summary. Thank you for contributing to Interop 2023! Posted on behalf of the Interop team. |
Description
Constructable Stylesheets and adoptedStyleSheets enable adding styles directly to DOM trees, e.g. document and shadow roots, without creating new DOM elements. Because a single stylesheet object can be adopted by multiple scopes, it also allows sharing of styles that can be centrally modified.
General consensus; shipped in both Chrome and Firefox, not available in Safari
Rationale
Specification
https://w3c.github.io/csswg-drafts/cssom-1/
Tests
Those including "constructable" in https://github.com/web-platform-tests/wpt/tree/master/css/cssom
The text was updated successfully, but these errors were encountered: