Decendents of children of sticky items push the sticky item over when they fall outside the sticky item's bounds
Reported by
brad.kem...@gmail.com,
Feb 24 2017
|
||||||
Issue descriptionExample URL: http://jsbin.com/lazuviq/5 Steps to reproduce the problem: 1. Go to the URL listed in a desktop version of Chrome 56, and note the position of the dark header, aligned with the left edge of the window 2. Go to the URL listed in the Android version of Chrome 56 3. Note that the dark header has been pushed to the right by the width of #bar. 4. Note that the dark header has been pushed even farther to the right and towards the bottom by the box-shadow of #bar (box-shadow should have no effect on layout). 5. Turn off the box shadow (using dev tools or jsbin features) and see it affect the layout. 6. Change the position of the header from 'sticky' to 'relative' to see the correct position (before scrolling). What is the expected behavior? Unscrolled, everything should look the same as if the header had 'position:relative'. #bar should be mostly off-screen on the left. Plus, the red shadow should not affect the position of anything else. What went wrong? Both the shadow and the position of the abs-pos descendant are adversely affecting the position of the header element, on Android Chrome only. This is destroying layouts that work fine in Safari. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? Yes 55, I think Does this work in other browsers? Yes Chrome version: 56.0.2924.87 Channel: stable OS Version: 7.1 Flash Version: When I say it worked before, I mean it wasn't an issue before, because Chrome didn't have position:sticky before, and feature-testing it in JavaScript didn't result in broken layouts.
,
Feb 27 2017
,
Feb 27 2017
I can repro on 58.0.3012.4 / Android.
,
Feb 27 2017
,
Mar 6 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Mar 6 2018
This no longer reproduces for me in Desktop mobile emulation nor in Canary on an Android device. That is, layout seems identical on all platforms. Please re-open the bug if that is not the case. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by rsgav...@chromium.org
, Feb 24 2017Status: Assigned (was: Unconfirmed)