New issue
Advanced search Search tips

Issue 680075 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Wrong getBoundingClientRect value for collapsed white space inline elements

Reported by kwk...@vivliostyle.com, Jan 11 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:53.0) Gecko/20100101 Firefox/53.0

Steps to reproduce the problem:
1. Open the attached test case

What is the expected behavior?
'top' of return values of getBoundingClientRect() for the following inline elements should be larger than the 'top' value for div#container:
- #empty-span
- #whitespace-span
- #nonempty-span
- #empty-div
- #whitespace-div
- #nonempty-div

That is, all of these elements should be strictly below the top edge of the container element.

What went wrong?
The following elements (empty or only containing collapsed white spaces) have the same 'top' value as #container:
- #empty-span
- #whitespace-span
- #empty-div
- #whitespace-div

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 55.0.2883.95 (Official Build)  (64 bit)  Channel: stable
OS Version: OS X 10.11
Flash Version: Shockwave Flash 23.0 r0
 
collapsed-white-space-inlines.html
1.2 KB View Download
collapsed-white-space-inlines-result.png
43.4 KB View Download

Comment 1 by e...@chromium.org, Jan 12 2017

Cc: kojii@chromium.org szager@chromium.org
Labels: -Pri-2 Pri-3
Status: Available (was: Unconfirmed)

Comment 2 by xing...@intel.com, Jan 14 2017

Cc: xing...@intel.com
Project Member

Comment 3 by sheriffbot@chromium.org, Feb 15 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
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

Comment 4 by e...@chromium.org, Feb 15 2018

Cc: xiaoche...@chromium.org
Status: Available (was: Untriaged)

Sign in to add a comment