W3C home > Mailing lists > Public > www-style@w3.org > October 2012

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 23 Oct 2012 15:41:04 -0700
Message-ID: <CAAWBYDArtXuu6wJvs0nK-0jD2oGPbWS60AoG_prHyeXCEkh+-w@mail.gmail.com>
To: "Edward O'Connor" <eoconnor@apple.com>
Cc: www-style@w3.org
On Tue, Oct 23, 2012 at 3:33 PM, Edward O'Connor <eoconnor@apple.com> wrote:
> 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. What do other engine implementors think?
>
> I'll refrain from suggesting names; feel free to bikeshed! :)

+1.

I have a laundry list of position/sizing information improvements to
the CSSOM that I haven't had time to work on - you got a volunteer
that wants to take that chunk of functionality?

~TJ
Received on Tuesday, 23 October 2012 22:41:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT