Issue metadata
Sign in to add a comment
|
Overflow Scrollbar Flickers When Resizing Element That Affects Image Size
Reported by
imdashiz...@gmail.com,
Sep 15 2017
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36 Steps to reproduce the problem: Demo of issue 1. Visit https://fiddle.jshell.net/mvhj726s/6/ 2. Press the -1/+1 buttons to see the overflow-y scrollbar toggling on/off every pixel. This creates a flickering, twitchy effect when users resize the window on a responsive site, or when there are custom transitions. The example has: -the main div, with specified width/height -the parent div, contained inside main div with 100% width/height -the image, contained in parent div, which has a percentage max-width and an extremely high width, causing the image to scale based on the parent div's width. The -1/+1 buttons will alter the main div's width by a pixel at a time, scaling the image. When the image reaches the threshold to have the scrollbar appear, Chrome gets confused. There is a 10~20 px range where the scrollbar flickers. Firefox/IE do not experience this issue. When the scrollbar appears, it stays visible throughout the range where it can't actually be scrolled. Note that the nested parent div is required for this to happen in Chrome. If the image was directly in the main div, the scrollbar would function exactly the same as Firefox/IE. What is the expected behavior? The scrollbar should remain visible consistently throughout this gray area. It should not be confused by how it is affecting the layout. What went wrong? Scrollbar flickers. Did this work before? Yes 52 Does this work in other browsers? Yes Chrome version: 61.0.3163.91 Channel: stable OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version: Shockwave Flash 27.0 r0
,
Sep 15 2017
The flickering effect can be seen more rapidly by resizing the width of your browser window while viewing the fiddle, or by dragging the vertical handler that is between the javascript and output.
,
Sep 18 2017
Able to reproduce the issue on Win-10 using chrome reported version #61.0.3163.91 and latest canary #63.0.3218.0. Observed flickering of scrollbar upon clicking -1/+1 buttons. But in M52, in which the issue doesn't exist as per the reporter in comment #0, the scrollbar doesn't seems to show up upon clicking -1/+1 buttons.(as per attached screen cast 765680@M52.mp4). imdashizmono@ - Could you please let us know the expected behavior and the behavior in M52 or please provide any other url to test the issue from TE-end. This will help us in triaging the issue further. Thanks...!!
,
Sep 18 2017
Well, in version 52 the scrollbar stays hidden until you see the orange box touch the bottom of it's container. Please read the new explanation, then check the updated link (-5/+5 added, along with a width display): https://fiddle.jshell.net/mvhj726s/7/ The issue that is occurring is caused by a section of width values that make the image large enough to require a scrollbar, BUT creating the scrollbar lessons the available width, thus shrinking the image to where the scrollbar is NOT required. The width where this occurs is between 197 and 213 px. Chrome 53+ gets confused, and every other check that is made causes it to toggle the scrollbar. The logic seems to be something like: -Size of image without scrollbar is too large, so enable scrollbar. -Reflow occurs, making image smaller. -Size of image with scrollbar is small enough to fit, so disable scrollbar. -Reflow occurs, making image larger. (Note: My apologies, should've specified that Chrome v52 just worked differently, and just doesn't examine the same flickering issue. It still functions strangely) For Chrome 52, there is a different bug around the same situation. The setup behaves like this: -Setting width below 197 px, scrollbar is disabled and the image size is based on the width value. -Setting width above 213 px, scrollbar is enabled and the image size is based on the width value MINUS the scrollbar width. -Setting width between 197-213: -If previous width was below 197, scrollbar is disabled, but the image size is based on the width value MINUS the scrollbar width. Functions this way until a value outside the threshold is set. -If previous width was above 213, scrollbar is enabled, but the image size is based on the width value (not taking scrollbar into account). I feel that the expected behavior should behave like this: -Setting width below 197px, scrollbar disabled. -Setting width at or above 197px, scrollbar enabled. Does this help give a better understanding?
,
Sep 18 2017
Thank you for providing more feedback. Adding requester "krajshree@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 19 2017
Tested the issue on Win-10 using chrome version #52.0.2709.0 by navigating to URL: https://fiddle.jshell.net/mvhj726s/7/ Observed that the grey layout in the scrollbar at 210px goes up a little and at 205px it goes down again on pressing the "-5" button. Plz refer the attached screen cast for reference. imdashizmono@ - Could you please verify the screen cast and please let us know if it is the expected behaviour for M52 chrome version. This will help us in bisecting the issue further. Thanks...!!
,
Sep 19 2017
The screen cast is showing the expected behavior for M52.
,
Sep 19 2017
Thank you for providing more feedback. Adding requester "krajshree@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 20 2017
Looks like it might be a layout issue.
,
Sep 23 2017
Over to skobes for further triage.
,
Dec 13
None of the test cases are available anymore. Unable to reproduce. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by manoranj...@chromium.org
, Sep 15 2017