Non-official enthusiasm from me!
Would a version for ShadowRoot be included as well, since it has elementFromPoint (singular)?
Just to double check - from what I can tell, IE implements both elementFromPoint (http://msdn.microsoft.com/en-us/library/ie/ms536417%28v=vs.85%29.aspx), and msElementsFromPoint (http://msdn.microsoft.com/en-us/library/ie/hh673523%28v=vs.85%29.aspx#The_msElementsFromPoint_method).It's only the latter (that returns all elements) that we're proposing here right?
On Thu Jan 15 2015 at 2:09:37 PM Rick Byers <rby...@chromium.org> wrote:Great!I know there is code out there that plays tricks to emulate this like call elementFromPoint in a loop, applying style.pointerEvents='none' to each element. It'll be nice to have a cleaner solution.Maybe someday we should also drive a standard for elementsFromRect to enable fuzzy hit testing algorithms (like our touch adjustment) to be implemented in JS?
Great!I know there is code out there that plays tricks to emulate this like call elementFromPoint in a loop, applying style.pointerEvents='none' to each element. It'll be nice to have a cleaner solution.Maybe someday we should also drive a standard for elementsFromRect to enable fuzzy hit testing algorithms (like our touch adjustment) to be implemented in JS?
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
I see that our Document.elementFromPoint() takes long arguments and
not double. It would probably make sense to fix that for the same
release that gets Document.elementsFromPoint(), so that people don't
need to be tempted to use elementsFromPoint() just for the extra
precision.
Unofficial LGTM too.
elementsFromRect and elementsFromPoint could both be implemented using a rect-based hit test call, where the rect is (x, y, 1, 1) for the later and (x, y, w, h) for the former.
> email to blink-dev+unsubscribe@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
Sounds good to me!
Dimitri and Hayato, your spec seems to be broken, it's not generating
a table of contents or the IDL sections. With WebVTT, I publish a
static copy to make it load faster and so that ReSpec changes can't
break it.
>>>> > email to blink-dev+unsubscribe@chromium.org.
>>>>
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to blink-dev+unsubscribe@chromium.org.
>
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to blink-dev+unsubscribe@chromium.org.