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
TS 3.9+ missing registerProperty method in CSS #38593
Activity
BarnT commentedon Mar 14, 2021
Also
CSS.paintWorklet.addModule()throws error:"Property 'paintWorklet' does not exist on type 'typeof CSS'."
kongxiangyan commentedon Dec 29, 2021
I am encountering the same problem, if you hadn't solve it, use
namespaceinstead ofinterface.Here is my code, all definition is refer to
CSS.registerProperty()- MDNPlayground Link:
scriptex commentedon Mar 31, 2022
I fixed this with the following code:
jakebailey commentedon Jul 9, 2023
This was fixed in #53133, which restored CSS as a namespace.