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
NOTE: In this version of the spec, duration is not settable as a CSSNumericValue; however, duration may be returned as a CSSNumericValue when resolving the duration in getComputedTiming(). Future versions of the spec may enable setting the duration as a CSSNumeric value, where the unit is a valid time unit or percent.
(I don't think I wrote it so I don't recall the background but just to say that this appears to be intentional.)
With the updated typings we get TS errors, but I now also fear that the implementations might change so that the actual code might also break in the future.
https://drafts.csswg.org/web-animations-2/#the-effecttiming-dictionaries
Web Animations Level 2 updates
EffectTiming.duration
with CSSNumericValue but notOptionalEffectTiming.duration
. Maybe it should?The text was updated successfully, but these errors were encountered: