mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Bug 1448700 [wpt PR 10171] - Web Animations: remove timing objects, a=testonly
Automatic update from web-platform-testsWeb Animations: remove timing objects The upstream spec has removed the 'timing' objects and replaced them with updateTiming/getTiming methods on AnimationEffect. It also removed and renamed a few timing idl interfaces; see the bug for full details. This CL also refactors the timing input parsing, aiming to make the public TimingInput API match what the spec requires and not expose other unnecessary methods. See https://github.com/w3c/csswg-drafts/pull/2432 for the spec change. Bug: 823384, 823386 Change-Id: I40c82e46be29c16e2e4b53d69bbadc95c8bff324 Reviewed-on: https://chromium-review.googlesource.com/975923 Reviewed-by: Robert Flack <flackr@chromium.org> Reviewed-by: Xida Chen <xidachen@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#548403} wpt-commits: f6c1d7b9aafaa94ab53239634e1bbc433e32adb4 wpt-pr: 10171 wpt-commits: f6c1d7b9aafaa94ab53239634e1bbc433e32adb4 wpt-pr: 10171
This commit is contained in:
parent
50264a81e5
commit
c8b5418c5b
@ -518304,7 +518304,7 @@
|
||||
"support"
|
||||
],
|
||||
"css/css-timing/cubic-bezier-timing-functions-output.html": [
|
||||
"77a45437209844f7e5128bd6aa2efeeacf876187",
|
||||
"2d60e1bcdad1f454373ecde2367bb9a9a223cd12",
|
||||
"testharness"
|
||||
],
|
||||
"css/css-timing/frames-timing-functions-output.html": [
|
||||
|
@ -15,7 +15,7 @@ href="https://drafts.csswg.org/css-timing/#cubic-bezier-timing-functions">
|
||||
|
||||
function assert_style_left_at(animation, time, easingFunction) {
|
||||
animation.currentTime = time;
|
||||
var portion = time / animation.effect.timing.duration;
|
||||
var portion = time / animation.effect.getTiming()['duration'];
|
||||
assert_approx_equals(pxToNum(getComputedStyle(animation.effect.target).left),
|
||||
easingFunction(portion) * 100,
|
||||
0.01,
|
||||
|
Loading…
Reference in New Issue
Block a user