Bug 139192 - In SVG, when the animation is paused and the animation function value is to-animation, the transform attribute in the target element has no effect.
Summary: In SVG, when the animation is paused and the animation function value is to-a...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2014-12-02 12:18 PST by Said Abou-Hallawa
Modified: 2023-09-22 01:19 PDT (History)
3 users (show)

See Also:


Attachments
Test running only a part of animateTransform while the animation is paused (3.07 KB, image/svg+xml)
2014-12-02 12:18 PST, Said Abou-Hallawa
no flags Details
Expected file (1.22 KB, image/svg+xml)
2014-12-02 12:18 PST, Said Abou-Hallawa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2014-12-02 12:18:11 PST
Created attachment 242437 [details]
Test running only a part of animateTransform while the animation is paused

Open this svg in WebKit

<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink">
  <!-- to animation -->
  <g transform="translate(50 250)">
    <path d="M-2 50h4v -90h4l -6 -10 -6 10h4z" fill="blue"
    transform="rotate(45)">
      <animateTransform attributeName="transform"
        type="rotate" to="135" dur="2s" fill="freeze"/>
    </path>
  </g>
  <!-- by animation -->
  <g transform="translate(150 250)">
    <path d="M-2 50h4v -90h4l -6 -10 -6 10h4z" fill="blue"
    transform="rotate(45)">
      <animateTransform attributeName="transform"
        type="rotate" by="90" dur="2s" fill="freeze"/>
    </path>
  </g>
  <script>
    document.documentElement.pauseAnimations();
  </script>
</svg>

Result: The first arrow is upwards arrow and the second arrow is North-East arrow
Expected: Both arrows should be North-East arrows

Or open the attached svg and compare it with the expected results. They should be identical.
Comment 1 Said Abou-Hallawa 2014-12-02 12:18:45 PST
Created attachment 242438 [details]
Expected file
Comment 2 Radar WebKit Bug Importer 2014-12-02 12:19:13 PST
<rdar://problem/19118011>
Comment 3 Ahmad Saleem 2023-01-22 06:55:44 PST
I am able to reproduce this bug in Safari 16.2 & Safari Technology Preview 161 using attached test case while other Chrome Canary 111 and Firefox Nightly 111 match each other and work similar to Expected File. Thanks!