[Webkit-unassigned] [Bug 29245] New: elementFromPoint() and caretRangeFromPoint() work only in initial containing block

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 14 09:21:29 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29245

           Summary: elementFromPoint() and caretRangeFromPoint() work only
                    in initial containing block
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: randrew at gmail.com


Calling Document.elementFromPoint() and Document.caretRangeFromPoint() both
will return null instead of a valid Range object when used on client
coordinates that fall outside of the initial containing block. That is, any
points which are not visible when the browser viewport is scrolled up and to
the right all the way will yield null if you scroll the browser window and call
either of the two functions on them.

Reproduce:
Create a page with enough content so that scrollbars are created. Scroll until
some area not initially visible is now visible in the viewport. Call
elementFromPoint or caretRangeFromPoint anywhere in this area.

Actual result:
null is returned.

Expected result:
return a valid Range object.

Revision 48354 on 10.5.7 (Intel)

You can see a demo of the problem here:
http://emgio.com/caretrangefrompointbug/
Scroll the page down and you will the cursor chaser report which it receives
null.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list