- From: Hayato Ito <notifications@github.com>
- Date: Mon, 25 May 2015 01:48:40 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Message-ID: <w3c/webcomponents/issues/67@github.com>
Title: [Shadow]: elementFromPoint should return the host when you hit a Text node (bugzilla: 24638) Migrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=24638 ---- comment: 0 comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=24638#c0 *Elliott Sprehn* wrote on 2014-02-12 23:33:23 +0000. Seeing as we don't want to throw an exception when you put a Text node as a child of a ShadowRoot, we should at the very least return the host element so that hit testing in a ShadowRoot that has direct text children does something sensible. We probably need to make it return the host if you hit a border/background color too? (this also makes sense since you can querySelector(":host"), so the host really is in the same scope as the ShadowRoot. ---- comment: 1 comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=24638#c1 *Daniel Freedman* wrote on 2014-02-12 23:57:33 +0000. This is conceptually similar to the fact that document.elementFromPoint will return the documentElement if the x,y target is within the document's bounds. ---- comment: 2 comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=24638#c2 *Anne* wrote on 2014-02-13 10:05:18 +0000. Instead of defining it this way, someone should define hit testing on layout boxes. ---- comment: 3 comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=24638#c3 *Anne* wrote on 2014-02-13 10:05:59 +0000. I'm not sure we want radically different behavior for elementFromPoint() and mouse events and :hover and such for instance. --- Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/67
Received on Monday, 25 May 2015 08:49:29 UTC