[wpt-sync] Sync PR 22914 - Base style should respond to animations modified with setKeyframes
Categories
(Core :: CSS Transitions and Animations, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox77 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 22914 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/22914
Details from upstream follow.
Anders Hartvoll Ruud <andruud@chromium.org> wrote:
Base style should respond to animations modified with setKeyframes
When animating font-affecting properties (e.g. font-size) while the
base style contains font-relative units (e.g. em), we can not use the
base computed style optimization, since the font-relative units in the
base must respond to the font animation.A has_font_affecting_animation_ flag was recently added to
ElementAnimations to assist in disabling the optimization under these
circumstances. However, that was added with an insufficient
understanding of ElementAnimation's lifetime, and hence this flag
doesn't really work properly.For example, if we have an animation that initially doesn't affect the
font, but then suddenly affects the font after all via setKeyframes,
we would paint one incorrect frame before discovering that the font
is now affected, and then (for frame #2 and subsequent) we'd be able
to disable the optimization.This CL instead checks if the EffectStack affects the font when we're
considering the base computed style for use.Bug: 437689
Change-Id: If07f1e82559673433be0a80d2c3edea1c1a5165aReviewed-on: https://chromium-review.googlesource.com/2139662
WPT-Export-Revision: 7720319e658fbfc0f3c9f175a6faa437e2387878
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
| bugherder | ||
Description
•