Closed Bug 1555486 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 17083 - [web-animations] Make handling of keyframes more spec compliance

Categories

(Core :: DOM: Animation, defect, P4)

defect

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 17083 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/17083
Details from upstream follow.

Majid Valipour <majidvp@chromium.org> wrote:

[web-animations] Make handling of keyframes more spec compliance

WebAnimations spec has two keyframe concepts:

A) keyframes [1]
B) computed keyframes [2]

A key difference is that in A property values remain unresolved while in
B these properties are resolved (e.g., shorthands expand to long hands
etc.)

KeyframeEffect.getKeyframes() is expected to return (A) but our current
implementation only keeps around (B).

This CL introduces the following changes to bring us closer to the
specified behavior:

  1. Introduce a new vector \<property, value> in StringKeyframe
    representing (A)
  2. CSS property pairs are added to this list as long as they parse
    correctly [3]
  3. Use the new vector to produce the result of getKeyframes()

Note that we continue our old behavior for SVG and Presentation attrs
which will be switch over in follow up patch.

[1] https://drafts.csswg.org/web-animations/#keyframes-section
[2] https://drafts.csswg.org/web-animations/#calculating-computed-keyframes
[3] https://drafts.csswg.org/web-animations/#process-a-keyframes-argument step 8

TEST:

  • web-animations/interfaces/{Animatable, Keyframes} => PASS previously failing tests
  • Added two new test cases covering animated custom props

Bug: 816956
Change-Id: Icc8e0bc4a0ee3019ad7d2c566aacb9d3aee0ffe3
Reviewed-on: https://chromium-review.googlesource.com/1634393
WPT-Export-Revision: cc79534ee2946219d2e811a63a48cfd3dac5fa75

Component: web-platform-tests → DOM: Animation
Product: Testing → Core
Failed to get results from try push
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/mozilla-inbound/rev/7e69774b6503 [wpt PR 17083] - [web-animations] Make handling of keyframes more spec compliant, a=testonly
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.