[wpt-sync] Sync PR 17083 - [web-animations] Make handling of keyframes more spec compliance
Categories
(Core :: DOM: Animation, defect, P4)
Tracking
()
| 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:
- Introduce a new vector \<property, value> in StringKeyframe
representing (A)- CSS property pairs are added to this list as long as they parse
correctly [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 8TEST:
- 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
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
| Assignee | ||
Comment 4•6 years ago
|
||
| Assignee | ||
Comment 5•6 years ago
|
||
| Assignee | ||
Comment 6•6 years ago
|
||
| Assignee | ||
Comment 7•6 years ago
|
||
| Assignee | ||
Comment 8•6 years ago
|
||
Comment 10•6 years ago
|
||
| bugherder | ||
Description
•