Skip to content

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

Closed

Description

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

Activity

  1. RyanCavanaugh commented on Feb 27, 2019

    @RyanCavanaugh
    Member

    Draft/experimental APIs should be provided as out-of-band lib files, not in the shipping DOM. We'll revisit when this leaves experimental phase

  2. jogibear9988 commented on Oct 21, 2019

    @jogibear9988

    Also shipped in FireFox

  3. meyfa commented on Jul 3, 2022

    @meyfa

    I'm pretty sure this is a standard thing by now, see the Compatibility Table on MDN and the Specification by CSSWG. May we revisit?

  4. RyanCavanaugh commented on Jul 5, 2022

    @RyanCavanaugh
    Member

    Sure

  5. meyfa commented on Jul 18, 2022

    @meyfa

    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:

    adoptedStyleSheets: CSSStyleSheet[];

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

  6. meyfa commented on Aug 26, 2022

    @meyfa

    Seems to be fixed in TS 4.8! 🎉

  7. CedX commented on Aug 26, 2022

    @CedX

    Confirmed on my side: with TS 4.8.2, it's OK.

  8. jakebailey commented on Jul 9, 2023

    @jakebailey
    Member

    This was fixed in #49596.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions