W3C home > Mailing lists > Public > www-style@w3.org > June 2013

Re: [cssom-view] new method, like document.elementFromPoint(), but in the document's coordinate space

From: Simon Pieters <simonp@opera.com>
Date: Mon, 24 Jun 2013 13:39:56 +0200
To: www-style@w3.org, "Edward O'Connor" <eoconnor@apple.com>
Message-ID: <op.wy6lcumwidj3kv@simons-macbook-pro.local>
On Wed, 24 Oct 2012 00:33:02 +0200, Edward O'Connor <eoconnor@apple.com>  
wrote:

> Hi,
>
> 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.

What's the use case? Do you know of any pages that work around the lack of  
this feature?

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

Do you have pointers to these requests?

> Implementing such methods in WebKit would be pretty
> straightforward. What do other engine implementors think?
>
> I'll refrain from suggesting names; feel free to bikeshed! :)

cheers

-- 
Simon Pieters
Opera Software
Received on Monday, 24 June 2013 11:38:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:12 UTC