Elements with "overflow: hidden" sometimes skip an initial floating element and get pushed down, leaving whitespace
Reported by
paul.d.g...@gmail.com,
Dec 13 2016
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36 Steps to reproduce the problem: 1. Insert a floating div. 2. Insert a second, wider, floating div. 3. Insert an "overflow: hidden" paragraph. (This only fails for certain combinations of widths.) What is the expected behavior? The paragraph should be aligned vertically with the initial floating div, with width restricted to avoid overlap with the second floating div. This is how it works on Firefox and Explorer. What went wrong? The entire paragraph is pushed down and positioned after the first float, resulting in a large chunk of whitespace. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 54.0.2840.99 Channel: n/a OS Version: 10.0 Flash Version: Shockwave Flash 23.0 r0 Fails on updated versions of both Chrome and Chromium. See demo on https://jsfiddle.net/pdg137/obt5xrbw/1/ See also http://stackoverflow.com/questions/710158/why-do-my-list-item-bullets-overlap-floating-elements for why we might want "overflow: hidden" next to floats.
,
Dec 13 2016
,
Dec 13 2016
#2 - why is it Type-Compat?
,
Dec 13 2016
Your test case 'chrome-bug.html' works fine on : Google Chrome 57.0.2946.0 (Official Build) dev (64-bit) Revision 38c3eb61c737a8d3313ca8cd31b0c514c9d35b05-refs/heads/master@{#437422} OS Linux JavaScript V8 5.7.186 Flash 24.0.0.178 and also in: Google Chrome 55.0.2883.87 (Official Build) (64-bit) Revision ad0be09aa3ca814168d079b52825f6f80e22f0e8-refs/branch-heads/2883@{#723} OS Linux JavaScript V8 5.5.372.32
,
Dec 13 2016
Ah, looks like the problem was fixed between 54.0.2840.99 and 55.0.2883.87. Thanks and sorry for the trouble! |
|||
►
Sign in to add a comment |
|||
Comment 1 by nyerramilli@chromium.org
, Dec 13 2016