Bug 20328 - new method, like document.elementFromPoint(), but in the document's coordinate space
Summary: new method, like document.elementFromPoint(), but in the document's coordinat...
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM View (show other bugs)
Version: unspecified
Hardware: PC All
: P2 enhancement
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
Depends on:
Reported: 2012-12-10 21:38 UTC by Edward O'Connor
Modified: 2013-08-08 13:28 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Edward O'Connor 2012-12-10 21:38:12 UTC
Both document.elementFromPoint() and document.caretPositionFromPoint()
take viewpoint coordinates, and return null if the coordinates given
identify a point outside of the visible viewport. This prevents using
these methods for hit testing elements elsewhere in the document.

We've had a few feature requests for equivalent methods which operate
within the document's coordinate space, and personally I think it's a
good idea. Implementing such methods in WebKit would be pretty

I'll refrain from suggesting names; feel free to bikeshed! :)

Filed as requested in http://lists.w3.org/Archives/Public/www-style/2012Oct/0690.html