Range.getBoundingClientRect() returns incorrect value when measureing a text node that wraps onto next line.

Issue #1842275 • Assigned to Bogdan B.

Details

Created
Feb 26, 2015
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

Navigate to http://jsfiddle.net/9h2bmkwk/4/ and run the script. Notice that each non-space character has a height of ~18px while each space character has a height of ~36px.

Try it in chrome or firefox, and notice that they report the same height consistently (~16px)

Expected Results:

Return a top & bottom which is the position of the space character on the first line. In the jsfiddle provided, the height that is output should be the same value (~18 for myself) across all values.

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Tony S.”

      Changed Assigned To to “Rossen A.”

      Changed Assigned To from “Rossen A.” to “IE F.”

      Changed Status to “Won’t fix”

      Changed Assigned To to “Bogdan B.”

      Changed Status from “Won’t fix”

    You need to sign in to your Microsoft account to add a comment.

    Sign in