<?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>96349</bug_id>
          
          <creation_ts>2012-09-10 20:56:58 -0700</creation_ts>
          <short_desc>SVG does not handle dynamic document-order id changes</short_desc>
          <delta_ts>2023-07-14 12:46:10 -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>420+</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=139155</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Rogers">pdr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>rniwa</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>716802</commentid>
    <comment_count>0</comment_count>
      <attachid>163270</attachid>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2012-09-10 20:56:58 -0700</bug_when>
    <thetext>Created attachment 163270
Testcase

If we have two elements with the same ID, we should use the first (in document order) element. Unfortunately we do not handle this correctly in the case of xlink:href&apos;s.

The attached testcase shows one example using animations, but this bug exists for other xlink:href cases too. In the testcase we animate the element #first but then add another #first before the one we are animating. We should switch to animating the first #first, but we incorrectly continue animating the second.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1881972</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-10 13:09:19 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari 15.5 / Safari Technical Preview 148 on macOS 12.4 using attached test case.

*** Safari Behavior ***

Green box animate and after few seconds, it kicks in &quot;Red&quot; to animate and it jumps but nothing happen to red except change in direction and then &quot;Green&quot; continues to animate.

*** Other Browsers (Chrome Canary 105 and Firefox Nightly 104) Behavior ***

Green box animates and after few seconds, it kicks &quot;Red&quot; to animate and &quot;Green&quot; box stop animating while &quot;Red&quot; animates now.

If I am testing incorrectly, please retest accordingly. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884303</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-15 15:33:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/97097786&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>163270</attachid>
            <date>2012-09-10 20:56:58 -0700</date>
            <delta_ts>2012-09-10 20:56:58 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>animateSwitch.html</filename>
            <type>text/html</type>
            <size>727</size>
            <attacher name="Philip Rogers">pdr</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5Pgo8c3ZnIGlkPSJzdmciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAw
L3N2ZyIgdmVyc2lvbj0iMS4xIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94
bGluayIgd2lkdGg9IjUwMCIgaGVpZ2h0PSI1MDAiPgogIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9
IngiIHhsaW5rOmhyZWY9IiNmaXJzdCIgZnJvbT0iMTAwIiB0bz0iMjAwIiBkdXI9IjEwcyIgYmVn
aW49IjBzIiAvPgogIDxnIGlkPSJnIiB0cmFuc2Zvcm09InJvdGF0ZSgxMCkiPjwvZz4KICA8cmVj
dCBpZD0iZmlyc3QiIHg9IjEwMCIgeT0iMTAwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmls
bD0iZ3JlZW4iID48L3JlY3Q+CiAgPHJlY3QgY2xhc3M9ImZha2VmaXJzdCIgaWQ9ImZpcnN0IiB4
PSIxMDAiIHk9IjMwMCIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIGZpbGw9InJlZCIgPjwvcmVj
dD4KPC9zdmc+CjxzY3JpcHQ+CiAgc2V0VGltZW91dChmdW5jdGlvbigpewogICAgdmFyIGcgPSBk
b2N1bWVudC5nZXRFbGVtZW50QnlJZCgnZycpOwogICAgdmFyIGZha2VmaXJzdCA9IGRvY3VtZW50
LmdldEVsZW1lbnRzQnlDbGFzc05hbWUoJ2Zha2VmaXJzdCcpWzBdOwogICAgZmFrZWZpcnN0LnBh
cmVudE5vZGUucmVtb3ZlQ2hpbGQoZmFrZWZpcnN0KTsKICAgIGcuYXBwZW5kQ2hpbGQoZmFrZWZp
cnN0KTsKICB9LCAyMDAwKTsKPC9zY3JpcHQ+CjwvYm9keT4KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>