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: Sebastian Zartner <sebastianzartner@gmail.com>
Date: Fri, 26 Oct 2012 08:34:14 +0200
Message-ID: <CAERejNYmxhwcdhnN931PHV33qeXKi_0Qjb-pQ4=LFaA6pJSG+w@mail.gmail.com>
To: Shane Stephens <shans@google.com>
Cc: "Edward O'Connor" <eoconnor@apple.com>, www-style list <www-style@w3.org>
> I don't think it's a good idea to have document.elementFromPoint take
> viewport coordinates but document.elementsFromPoint take document
> coordinates.
Uhm, who said document.elementsFromPoint() would take document coordinates?
Did you mean <element>.caretPositionFromPoint()? If so, how to solve the
overlapping problem then?

Btw. what is caretPositionFromPoint() expected to return? A character

I think elementsFromPoint isn't a great name
How about getElementsAtPoint() and getCaretPositionAtPoint() to be
consistent with similar functions?

Received on Friday, 26 October 2012 06:34:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:23 UTC