Bug 20328 - new method, like document.elementFromPoint(), but in the document's coordinate space
new method, like document.elementFromPoint(), but in the document's coordinat...
Status: NEW
Product: CSS
Classification: Unclassified
Component: CSSOM View
unspecified
PC All
: P2 enhancement
: ---
Assigned To: Simon Pieters
public-css-bugzilla
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-10 21:38 UTC by Edward O'Connor
Modified: 2013-08-08 13:28 UTC (History)
1 user (show)

See Also:


Attachments

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
straightforward.

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