question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. Itย collects links to all the places you might be looking at while hunting down a tough bug.

And, if youโ€™re still stuck at the end, weโ€™re happy to hop on a call to see how we can help out.

DocumentOrShadowRoot.adoptedStyleSheets is missing in lib.dom.d.ts (constructible style sheets spec)

See original GitHub issue

TypeScript 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:open
  • Created 5 years ago
  • Reactions:11
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
meyfacommented, Aug 26, 2022

Seems to be fixed in TS 4.8! ๐ŸŽ‰

2reactions
meyfacommented, Jul 18, 2022

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 contains adoptedStyleSheets: https://github.com/microsoft/TypeScript/blob/aa2b2352e1d506bf26b6423b74c61e45a63b4ea5/src/lib/dom.generated.d.ts#L4724

Could someone please advise what to do to get it into lib/lib.dom.d.ts?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found