New issue
Advanced search Search tips

Issue 719533 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Absolute positioned element moves unexpectedly

Project Member Reported by yigu@chromium.org, May 8 2017

Issue description

Chrome Version: 58.0.3029.96 (Official Build) (64-bit)
OS: Low dpi devices

What steps will reproduce the problem?
(1) Open http://output.jsbin.com/pasideg
(2) Scroll

What is the expected result?
The green box is not supposed to move as scroll.
What happens instead?
The green box moves.


 
Labels: BugSource-Chromium PaintTeamTriaged-20170508 OS-Android OS-Chrome OS-Linux OS-Mac OS-Windows
Note the report that this only occurs on low DPI machines.

Comment 4 by yio...@gmail.com, May 11 2017

If 'will-change: transform' is used in the test case, Safari has the same problem.
Project Member

Comment 5 by bugdroid1@chromium.org, May 12 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/fca776d5b4979b1f9d86926bfb6d3fb14a0343f3

commit fca776d5b4979b1f9d86926bfb6d3fb14a0343f3
Author: yigu <yigu@chromium.org>
Date: Fri May 12 01:04:12 2017

Fix the bug that absolute positioned element moves unexpectedly

For an absolute positioned element, if its containing block is the body
it's not supposed to move as scroll. However, on low dpi devices, it
doesn't get composited if its ancestor is isolated composited therefore
it moves unexpectedly.

BUG= 719533 
TEST=third_party/WebKit/LayoutTests/compositing/overflow/absolute-element-in-isolated-composited-ancestor.html
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2

Review-Url: https://codereview.chromium.org/2869813002
Cr-Commit-Position: refs/heads/master@{#471158}

[modify] https://crrev.com/fca776d5b4979b1f9d86926bfb6d3fb14a0343f3/third_party/WebKit/LayoutTests/TestExpectations
[add] https://crrev.com/fca776d5b4979b1f9d86926bfb6d3fb14a0343f3/third_party/WebKit/LayoutTests/compositing/overflow/absolute-element-in-isolated-composited-ancestor-expected.html
[add] https://crrev.com/fca776d5b4979b1f9d86926bfb6d3fb14a0343f3/third_party/WebKit/LayoutTests/compositing/overflow/absolute-element-in-isolated-composited-ancestor.html
[modify] https://crrev.com/fca776d5b4979b1f9d86926bfb6d3fb14a0343f3/third_party/WebKit/LayoutTests/compositing/overflow/nested-render-surfaces-with-intervening-clip-expected.png
[modify] https://crrev.com/fca776d5b4979b1f9d86926bfb6d3fb14a0343f3/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp

Comment 6 by yigu@chromium.org, May 12 2017

Status: Fixed (was: Started)
Note that the fix works without SPV2 enabled.

Sign in to add a comment