New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 672578 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Fixed-position image clipped by absolute-position container breaks between 55.0.2844.3 and 55.0.2845.0 on Android

Project Member Reported by wangxianzhu@chromium.org, Dec 8 2016

Issue description

http://mashable.com/2016/12/06/most-downloaded-apps-2016 contains a fixed-position image clipped by an absolute-position container. It worked before 55.0.2844.3 but not after 55.0.2845.0.

Attached the saved page which can reproduce the issue more easily because the live page doesn't always show the advertisement containing the problematic dom.

Will do finer bisect and may also reduce the page to a test case.
 
test.zip
2.3 MB Download
Cc: klo...@chromium.org
Labels: -OS-Android OS-All
Owner: trchen@chromium.org
Status: Assigned (was: Untriaged)
Bisected to https://chromium.googlesource.com/chromium/src/+log/540399d5f34abfcae1828e2c36835ffae391e319..d748f22c6fa57ce44370686d816500f8cc9cb2aa.

Suspecting https://chromium.googlesource.com/chromium/src/+/2ef7df4c03595db39c1b0c303ec8a822f0bf30c9.

@trchen can you take a look?

More about the test:
- Please see the attached screenshot for good (need to scroll to the bottom of the page) and bad behavior.
- The issue can be reproduced on all high-dpi devices and low-dpi devices with --enable-prefer-compositing-to-lcd-text.
- On low-dpi devices without --enable-prefer-compositing-to-lcd-text, the test is not stable. Sometimes it shows good sometimes bad and sometimes it flashes between good and bad.



good.png
306 KB View Download
bad.png
537 KB View Download
Status: WontFix (was: Assigned)
Based on the CL, it seems that it's a correct behavior that the fixed-position child escapes overflow clip of the absolute parent. I'm marking this bug WontFix.

@trchen please confirm.

Firefox also behaves the same as us.

> - On low-dpi devices without --enable-prefer-compositing-to-lcd-text, the test is not stable...

Never mind the above statement. trchen's change actually fixed the unstable behavior on low-dpi devices.
The page can achieve the same effect using the following:

<div style="position: absolute; top: 500px; left: 10px; width: 100px; height: 100px;
   background-image: linear-gradient(blue, red); /* the image */
   background-attachment: fixed;"></div>
<div style="height: 4000px"></div>

Sign in to add a comment