DocumentOrShadowRoot.adoptedStyleSheets is missing in lib.dom.d.ts (constructible style sheets spec)
See original GitHub issueTypeScript Version: 3.4.0-dev.20190220
Search Terms: CSS constructable stylesheets adoptedStyleSheets shadow root
Shipped in Chrome and polyfillable.
Spec: https://wicg.github.io/construct-stylesheets/ Blog post: https://developers.google.com/web/updates/2019/02/constructable-stylesheets
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Document.adoptedStyleSheets - Web APIs | MDN
The adoptedStyleSheets property of the Document interface is used for setting an array of constructed stylesheets to be used by the documentย ...
Read more >DocumentOrShadowRoot | typescript - v3.7.7
Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the...
Read more >Why Would Anyone Use Constructible Stylesheets, Anyways?
Let's learn together what a Constructible Stylesheet is and how they ... Status page if you'd like to see that code live in...
Read more >The model-viewer web component - Updates
The Trusted Web Activities library uses Java 8 features and the first change enables Java 8. ... Next Constructable Stylesheets: seamless reusable styles....
Read more >Constructable Stylesheets - web.dev
Constructable Stylesheets provide a seamless way to create and distribute ... are a way to create and distribute reusable styles when using Shadow...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems to be fixed in TS 4.8! ๐
CONTRIBUTING.md says โAny changes should be made to src/lib. Most of these files can be updated by hand, with the exception of any generated files (see below).โ Now,
src/lib/dom.generated.d.ts
already containsadoptedStyleSheets
: https://github.com/microsoft/TypeScript/blob/aa2b2352e1d506bf26b6423b74c61e45a63b4ea5/src/lib/dom.generated.d.ts#L4724Could someone please advise what to do to get it into
lib/lib.dom.d.ts
?