This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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

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