Horizontal Scroll bar appears on <body> when inline-block HTML element is adjacent to floated element iff the two elements are separated by one EOL character ONLY
Reported by
eziama.u...@gmail.com,
Jul 30
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36 Steps to reproduce the problem: 1. Two adjacent HTML elements, the first styled "display:inline-block; width:100%", and the second styled "float: left". <body> margin set to 0. 2. The two elements must be separated by only an EOL (either LF or CRLF) (i.e. ONLY a LF or CRLF between the closing tag of the first div and the opening tag of second div). 3. In Chrome (from 66 upwards, and possibly even earlier), a horizontal scroll bar appears. 4. Add space (or any character(s)) to (or in place of) the EOL character from step 2. The scroll bar disappears. What is the expected behavior? There should be no horizontal scroll bar, whether a single EOL or other character separates the elements. What went wrong? Chrome adds a horizontal scroll bar ONLY when the thus-styled HTML elements are separated by a single EOL. With any other character (combinations), the scroll bar disappears. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 67.0.3396.99 Channel: stable OS Version: 10.0 Flash Version:
,
Aug 1
|
||
►
Sign in to add a comment |
||
Comment 1 by yannic.b...@gmail.com
, Jul 30Labels: OS-Mac
Status: Untriaged (was: Unconfirmed)