Commit 74e8473
committed
fix(lib.dom.d.ts): Keyframe interface supports CSS Typed OM objects
Allow CSSStyleValue (and its subtypes like CSSTransformValue, CSSImageValue,
CSSNumericValue, etc.) in the Keyframe, ComputedKeyframe, and
PropertyIndexedKeyframes index signatures.
This enables using CSS Typed OM objects in Web Animations API keyframes,
for example:
element.animate([
{ transform: 'rotate(0deg)' },
{ transform: new CSSRotate(45, 0, 0, CSSNumericValue.parse('90deg')) }
], { duration: 500 })
Fixes #633251 parent 7b8cb3b commit 74e8473
1 file changed
+45125
-0
lines changed
0 commit comments