<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24638</bug_id>
          
          <creation_ts>2014-02-12 23:33:23 +0000</creation_ts>
          <short_desc>[Shadow]: elementFromPoint should return the host when you hit a Text node</short_desc>
          <delta_ts>2015-05-27 03:21:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>28552</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Elliott Sprehn">esprehn</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>annevk</cc>
    
    <cc>dfreedm</cc>
    
    <cc>hayato</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100450</commentid>
    <comment_count>0</comment_count>
    <who name="Elliott Sprehn">esprehn</who>
    <bug_when>2014-02-12 23:33:23 +0000</bug_when>
    <thetext>Seeing as we don&apos;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(&quot;:host&quot;), so the host really is in the same scope as the ShadowRoot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100452</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Freedman">dfreedm</who>
    <bug_when>2014-02-12 23:57:33 +0000</bug_when>
    <thetext>This is conceptually similar to the fact that document.elementFromPoint will return the documentElement if the x,y target is within the document&apos;s bounds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100483</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-02-13 10:05:18 +0000</bug_when>
    <thetext>Instead of defining it this way, someone should define hit testing on layout boxes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100484</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-02-13 10:05:59 +0000</bug_when>
    <thetext>I&apos;m not sure we want radically different behavior for elementFromPoint() and mouse events and :hover and such for instance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120524</commentid>
    <comment_count>4</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-05-27 03:21:44 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcomponents/issues/67</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>