W3C home > Mailing lists > Public > public-webapps-bugzilla@w3.org > November 2012

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 08 Nov 2012 21:52:11 +0000
To: public-webapps-bugzilla@w3.org
Message-ID: <bug-18912-2532-7m23BO6MCw@http.www.w3.org/Bugs/Public/>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 8 November 2012 21:52:13 GMT