<?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>137800</bug_id>
          
          <creation_ts>2014-10-16 19:07:39 -0700</creation_ts>
          <short_desc>The event on  &lt;use&gt; element are not dispatched when the referenced element&apos;s style updated.</short_desc>
          <delta_ts>2022-07-15 17:01:07 -0700</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>525.x (Safari 3.2)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Liu Lei">liuler</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>liuler</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1042268</commentid>
    <comment_count>0</comment_count>
      <attachid>239989</attachid>
    <who name="Liu Lei">liuler</who>
    <bug_when>2014-10-16 19:07:39 -0700</bug_when>
    <thetext>Created attachment 239989
testcase

There is a  &lt;use&gt; element references a &lt;rect&gt; element, the &lt;use&gt; element has a mousedown event and &lt;rect&gt; element has a mouseover event.
The mouseover event on &lt;rect&gt; element changes its own color. When the &lt;rect&gt; element&apos;s color changed, the mousedown event on &lt;use&gt; element 
can&apos;t be fired.


&lt;svg id=&quot;svg-root&quot; width=&quot;100%&quot; height=&quot;100%&quot;
  viewBox=&quot;0 0 480 360&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;
  xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
  &lt;g id=&quot;test-body-content&quot; font-family=&quot;SVGFreeSansASCII,sans-serif&quot; font-size=&quot;18&quot;&gt;
&lt;defs&gt;
	&lt;!-- SVGElementInstance animates fill on mouseover --&gt;
	&lt;rect id=&quot;rect&quot; width=&quot;50&quot; height=&quot;50&quot; fill=&quot;red&quot; 
         onmouseover=&quot;document.getElementById(&apos;rect&apos;).setAttribute(&apos;fill&apos;,&apos;blue&apos;)&quot;
         onmouseout=&quot;document.getElementById(&apos;rect&apos;).setAttribute(&apos;fill&apos;,&apos;red&apos;)&quot; /&gt;
&lt;/defs&gt;

    &lt;use id=&quot;use3&quot; fill=&quot;red&quot; x=&quot;30&quot; y=&quot;100&quot; xlink:href=&quot;#rect&quot; 
       onmousedown=&quot;document.getElementById(&apos;rect&apos;).setAttribute(&apos;stroke&apos;,&apos;black&apos;)&quot;    
       onmouseup=&quot;document.getElementById(&apos;rect&apos;).setAttribute(&apos;stroke&apos;,&apos;none&apos;)&quot;/&gt;
  &lt;/g&gt;
&lt;/svg&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884437</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-15 17:01:07 -0700</bug_when>
    <thetext>Safari, Chrome, and Firefox all agree on rendering for this test case. I don&apos;t believe there is any remaining compatibility issue.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>239989</attachid>
            <date>2014-10-16 19:07:39 -0700</date>
            <delta_ts>2014-10-16 19:07:39 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>interact-events.svg</filename>
            <type>image/svg+xml</type>
            <size>794</size>
            <attacher name="Liu Lei">liuler</attacher>
            
              <data encoding="base64">PHN2ZyBpZD0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