[Bug 18912] [Shadow]: ShadowRoot needs to support elementFromPoint

https://www.w3.org/Bugs/Public/show_bug.cgi?id=18912

--- Comment #9 from Dimitri Glazkov <dglazkov@chromium.org> ---
(In reply to comment #8)
> (In reply to comment #4)
> > FWIW I think there are four plausible candidates here:
> > 
> > 1. the shadow root
> > 2. null (the projection is a "hole")
> > 3. the content or shadow element that projected the element
> > 4. the parent of #3 (which may be the shadow root in some cases)
> 
> I am wondering why we cannot return the projected children?
> Does it relate to the lower-bound Encapsulation rule?

Since our event dispatch does not retarget at the lower boundary.
For consistency, given an element at x, y (let's call it HIT), I think we
should:

1) return HIT if it's a descendant of an element, distributed in an insertion
point
2) return <shadow> if HIT is in a nested tree.

WDYT?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 8 November 2012 21:52:12 UTC