forked from mirrors/gecko-dev
Automatic update from web-platform-tests Propagate subpixel accumulation through translation-only animations Previously we discard subpixel accumulation for all transform animations in case that the transform animation may apply a transform though which the subpixel accumulation can't be propagated, e.g. scale, rotation. However, for a translation-only animation, this caused different pixel-snapped offset of the element from the pixel-snapped offset before the animation and maybe 1 pixel glitch at start/end of the animation. Now check if the transform animation is translation only, and if yes, allow propagation of the subpixel accumulation. Bug: 1155029 Change-Id: I0cf759721b6c121f22310a445b679c7283973889 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2578387 Reviewed-by: Robert Flack <flackr@chromium.org> Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#835038} -- wpt-commits: e0707f9bf461b813e2c099fde357f44917308413 wpt-pr: 26804
12 lines
155 B
HTML
12 lines
155 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
div {
|
|
position: absolute;
|
|
top: 11px;
|
|
left: 1px;
|
|
width: 100px;
|
|
height: 100px;
|
|
background: green;
|
|
}
|
|
</style>
|
|
<div></div>
|