construct-stylesheets icon indicating copy to clipboard operation
construct-stylesheets copied to clipboard

API for constructing CSS stylesheet objects

Results 31 construct-stylesheets issues
Sort by recently updated
recently updated
newest added

This is a revised proposal addressing the feedback by domenic in the earlier one, which got unexpectedly off-topic. We can observe changes in `document.styleSheets`, although somewhat ineffectively, via MutationObserver on...

Most of the IDL defined in the Constructable Stylesheet Objects has now been merged into CSSOM (done in https://github.com/w3c/csswg-drafts/commit/0aca629bc2ff93d364eb363fa751c065187153fe) It would be good to drop the IDL so as not...

It seems that both Google and [Mozilla are behind this](https://groups.google.com/d/msg/mozilla.dev.platform/d4jO-DUBTE8/JDxCM7nhBAAJ), so should we move this to the CSS WG? cc @WICG/chairs

In cases where this API is used by custom elements, different subclasses may want to add a different stylesheet to `adoptedStyleSheets`. In that case, it's better to have explicit `add`...

enhancement
needs resolution

Could a performance comparison/benchmark reference for constructible style sheets with Chrome 73 be added? I could find no readily available benchmarks.

### Description I am currently implementing the `replace()` functionality for Constructable StyleSheets in Firefox. I noticed that the specification [steps](https://wicg.github.io/construct-stylesheets/#dom-cssstylesheet-replace) for `replace()` do not match what is implemented in Chromium....

The steps to create a CSS module ([spec draft](https://github.com/whatwg/html/pull/4898/)) should reference the steps in this spec to create a constructable stylesheet and run `replaceText()`. This will help ensure that the...

This is intended to illustrate https://github.com/heycam/webidl/pull/840. It is not ready to merge for various reasons. I think this turned out OK. Handling of "document or shadow root CSS style sheets"...

I cannot think of any practical use to list the same sheet more than once in `adoptedStyleSheets`. e.g. ``` const sheet = new CSSStyleSheet(); document.adoptedStyleSheets = [sheet, sheet, sheet]; ```...