Project: chromium Issues People Development process History Sign in
New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 2 users
Status: WontFix
Owner: ----
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment
Element.getClientRects on `display: inline` elements with children
Reported by justice...@gmail.com, Nov 18 2015 Back to list
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36

Example URL:
http://jsbin.com/juxihisisu/edit?html,css,js,output

Steps to reproduce the problem:
1. create a element with `display: inline` and make sure to append some child elements into it.
2. call getClientRects on the parent element.

What is the expected behavior?
The result isn't like that in Firefox/Edge, which only contains rects for each line box.

What went wrong?
The result contains rects for separated text nodes, child elements and line boxes.

But when we apply some specific styles on the parent element (http://jsbin.com/juxihisisu/edit?html,css,js,output), it works as expected (no extra rects for child elements).

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? No Safari (should be a problem of WebKit)

Chrome version: 46.0.2490.80  Channel: n/a
OS Version: OS X 10.11.1
Flash Version: Shockwave Flash 19.0 r0
 
Comment 1 by tkent@chromium.org, Nov 18 2015
Labels: -Cr-Blink Cr-Blink-Layout Hotlist-Interop
Comment 2 by e...@chromium.org, Nov 18 2015
Cc: le...@chromium.org jchaffraix@chromium.org szager@chromium.org
Status: Available
Comment 3 by e...@chromium.org, Apr 19 2016
Labels: -Pri-2 Pri-3
Comment 4 by e...@chromium.org, Feb 9 2017
Status: WontFix
We're in the process of revamping much of line-layout which should address this. Fixing fundamental issue like this in the old implementation isn't really practical.
Sign in to add a comment