[Webkit-unassigned] [Bug 138949] New: range.getBoundingClientRect() returns incorrect value for collapsed ranges

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 20 20:51:33 PST 2014


            Bug ID: 138949
           Summary: range.getBoundingClientRect() returns incorrect value
                    for collapsed ranges
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: hey.hgl at gmail.com

Example URL:

Steps to reproduce the problem:
1. click on the hello text
2. see a 0 0 0 0 value in the output div

What went wrong?
range.getBoundingClientRect() should return a rect that denotes the range position even if it's collapsed, according to the spec http://www.w3.org/TR/cssom-view/#dom-range-getclientrects

Especially the "including when the boundary-points are identical" part.

Blink also has this problem. Works in gecko.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141121/527eb025/attachment-0002.html>

More information about the webkit-unassigned mailing list