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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>16483</bug_id>
          
          <creation_ts>2007-12-17 14:39:55 -0800</creation_ts>
          <short_desc>SVG should allow clicks to &quot;fall through&quot; to XHTML content when transparent</short_desc>
          <delta_ts>2008-01-19 02:20:16 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/test-focusable-points.xhtml</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>15836</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hyatt</cc>
    
    <cc>ian</cc>
    
    <cc>timur.mehrvarz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64575</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-17 14:39:55 -0800</bug_when>
    <thetext>http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/wicdcore.xhtml#core14

http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/test-focusable-points.xhtml

I&apos;m not sure how complicated this will be.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64677</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-18 16:11:17 -0800</bug_when>
    <thetext>Ok, I think this test is wrong.

http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/test-focusable-points.xhtml

The event should dispatch to the front-most element under that mouse location.  (I&apos;m sure there is a spec which says this.)

In this case, that&apos;s the SVG &lt;rect&gt; element which is semi-transparent.  Since pointer-events defaults to  &quot;visiblePainted&quot; the &lt;rect&gt; element can actually accept events, and thus the hit testing stops.  An event is dispatched up the tree to the &lt;rect&gt; element, through the &lt;object&gt; and &lt;svg&gt; elements, but NOT touching the &lt;html:a&gt; elements which are not in the ancestor tree for the &lt;rect&gt;.  Then the event bubbles back down through the same tree, again, never touching the &lt;html:a&gt; elements.

If the &lt;rect&gt; had pointer-events=&quot;none&quot; specified, then it would fail to hit-test and the &lt;html:a&gt; element should actually be clickable.

We still fail this test with pointer-events=&quot;none&quot;, not sure why.  That might be  real bug on our part, or I might be misinterpreting how hit testing should actually work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64679</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-18 16:20:45 -0800</bug_when>
    <thetext>Ok, I&apos;ve looked into this more w/ our implementation.  Even when the &lt;svg&gt; declines hit-testing via pointer-events=&quot;none&quot;, the &lt;object&gt; itself is still hit.  Which makes some sense.  At least it would make sense for an absolutely positioned empty &lt;object&gt; to block any mouse events from reaching elements below it.  But perhaps in this case, since the &lt;object&gt; is just a container, if its kids fail to hit test, it should also fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64681</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-18 16:24:43 -0800</bug_when>
    <thetext>To &quot;fix&quot; this would simply require overriding nodeAtPoint in RenderPartObject, RenderPart, or RenderReplaced (probably RenderPart) to only hit-or-not depending on what its child render objects say, except in the case of fallback content, where it should probably participate in hit-testing like normal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65271</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-25 23:30:08 -0800</bug_when>
    <thetext>I CC&apos;d hyatt so that he can comment on if he feels &lt;object&gt; should be accepting the click event itself when its kids refuse it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65303</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2007-12-26 13:16:41 -0800</bug_when>
    <thetext>What do the specs say? I seem to recall SVG has some sort of rule about events always hitting the &quot;canvas&quot; and going to the root element or something. Anyway CSS doesn&apos;t define hit-testing, we should really come up with a spec to define this sometime.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67679</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-01-19 02:20:16 -0800</bug_when>
    <thetext>AFAICT the clicks should always hit the &lt;object&gt; element.  Until this is specified otherwise, I think this should be closed as invalid.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>