You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DocumentOrShadowRoot.adoptedStyleSheets is missing in lib.dom.d.ts (constructible style sheets spec) #30022
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:
Activity
RyanCavanaugh commentedon Feb 27, 2019
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
jogibear9988 commentedon Oct 21, 2019
Also shipped in FireFox
meyfa commentedon Jul 3, 2022
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?
RyanCavanaugh commentedon Jul 5, 2022
Sure
meyfa commentedon 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.tsalready containsadoptedStyleSheets:TypeScript/src/lib/dom.generated.d.ts
Line 4724 in aa2b235
Could someone please advise what to do to get it into
lib/lib.dom.d.ts?meyfa commentedon Aug 26, 2022
Seems to be fixed in TS 4.8! 🎉
CedX commentedon Aug 26, 2022
Confirmed on my side: with TS 4.8.2, it's OK.
jakebailey commentedon Jul 9, 2023
This was fixed in #49596.