mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317
This commit is contained in:
parent
aa199307c8
commit
2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
// Common utility methods for testing animation effects
|
||||
|
||||
// Tests the |property| member of |animation's| target effect's computed timing
|
||||
|
@ -26,7 +28,7 @@ function assert_computed_timing_for_each_phase(animation, property, values) {
|
|||
const timing = effect.getComputedTiming();
|
||||
|
||||
// The following calculations are based on the definitions here:
|
||||
// https://w3c.github.io/web-animations/#animation-effect-phases-and-states
|
||||
// https://drafts.csswg.org/web-animations/#animation-effect-phases-and-states
|
||||
const beforeActive = Math.max(Math.min(timing.delay, timing.endTime), 0);
|
||||
const activeAfter =
|
||||
Math.max(Math.min(timing.delay + timing.activeDuration, timing.endTime), 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue