CSS Animation of translate is responsive

Desktop / Chromium - Eric Willigers [chromium.org] - 11 August 2017 00:29 EDT

When units or zoom during an animation of the 'translate' property, the composited animation needs to update, just as for the animation of 'transform'.

rotate and scale animations don't have distance units, and are not affected in the same way by unit or zoom changes.

BUG=696374

Change-Id: I031ff17ad1141983d09f7fef94f76840a2daf832 Reviewed-on: https://chromium-review.googlesource.com/611680

2370c0b CSS Animation of translate is responsive
...ewport-unit-transform-responsive-expected.html} | 0
...tml => viewport-unit-transform-responsive.html} | 0
...iewport-unit-translate-responsive-expected.html | 18 +++++++
.../viewport-unit-translate-responsive.html | 30 ++++++++++++
...om-responsive-translate-animation-expected.html | 55 +++++++++++++++++++++
.../zoom-responsive-translate-animation.html | 57 ++++++++++++++++++++++
.../Source/core/animation/css/CSSAnimations.cpp | 3 +-
7 files changed, 162 insertions(+), 1 deletion(-)

Upstream: git.chromium.org


  • Share