<?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>149617</bug_id>
          
          <creation_ts>2015-09-29 00:46:34 -0700</creation_ts>
          <short_desc>SVG text transform css animation has no effect</short_desc>
          <delta_ts>2023-04-26 03:15:44 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=243493</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BlinkMergeCandidate, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kari.pihkala</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>karlcow</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>1129175</commentid>
    <comment_count>0</comment_count>
      <attachid>262048</attachid>
    <who name="">kari.pihkala</who>
    <bug_when>2015-09-29 00:46:34 -0700</bug_when>
    <thetext>Created attachment 262048
CSS Animation of svg text element transform

SVG text element transform can&apos;t be animated with CSS Animations. Translate, scale or rotate doesn&apos;t work.

The attached example has a translate animation for a text and rect element. Only the rect element is animated.

Also, the steps timing function for the color animation doesn&apos;t apply anymore. If the transform animation is removed, then the color animation works as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1129181</commentid>
    <comment_count>1</comment_count>
    <who name="">kari.pihkala</who>
    <bug_when>2015-09-29 01:02:46 -0700</bug_when>
    <thetext>I filed a similar bug for Chromium: https://code.google.com/p/chromium/issues/detail?id=537121</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884451</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-15 17:12:24 -0700</bug_when>
    <thetext>Oh, this looks so silly in Safari. We must fix it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884452</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-15 17:12:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/97101948&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905123</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-12 11:03:46 -0700</bug_when>
    <thetext>Seems to be changes here:

https://github.com/WebKit/WebKit/blob/b1c9ea1fcb1eac9c9a31b4331fecaff051669fe0/Source/WebCore/rendering/svg/RenderSVGInline.cpp#L142

_____

From

#if ENABLE(LAYER_BASED_SVG_ENGINE)
    if (!document().settings().layerBasedSVGEngineEnabled() &amp;&amp; diff == StyleDifference::Layout)
        setNeedsBoundariesUpdate();
#else
    if (diff == StyleDifference::Layout)
        setNeedsBoundariesUpdate();
#endif

___ 

#if ENABLE(LAYER_BASED_SVG_ENGINE)
    if (!document().settings().layerBasedSVGEngineEnabled() &amp;&amp; diff == StyleDifference::Layout) {
        setNeedsBoundariesUpdate();
        if (style()-&gt;hasTransform())
           setNeedsTransformUpdate();
        }
#else
    if (diff == StyleDifference::Layout) {
        setNeedsBoundariesUpdate();
        if (style()-&gt;hasTransform())
           setNeedsTransformUpdate();
        }
#endif

_______

I don&apos;t know whether this will work or not. But I can give it a try. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905139</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-12 11:52:03 -0700</bug_when>
    <thetext>https://github.com/WebKit/WebKit/pull/5297</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911117</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-08 14:58:53 -0800</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #5)
&gt; https://github.com/WebKit/WebKit/pull/5297

We need to account for case of &quot;transition is from a style with transform to a style without it&quot; and based on comment from Darin, we need to use like this:

oldStyle &amp;&amp; oldStyle-&gt;hasTransform()

-&gt; Unfortunately, I don&apos;t have expertise to write test case for above case of &quot;transition is from a style with transform to a style without it&quot;, I am going to close my PR and leave it for someone else to take it up and fix it. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1948931</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-14 21:43:02 -0700</bug_when>
    <thetext>It seems to be now fixed in Safari Technology Preview 167 compared to Safari 16.4.

We can close this by marking &apos;RESOLVED CONFIGURATION CHANGED&apos;. :-)

CCing - Karl to confirm as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1949055</commentid>
    <comment_count>8</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-04-16 17:12:02 -0700</bug_when>
    <thetext>It was fixed by Bug 243493 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1949057</commentid>
    <comment_count>9</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-16 17:25:15 -0700</bug_when>
    <thetext>(In reply to Karl Dubost from comment #8)
&gt; It was fixed by Bug 243493 ?

LBSE is not turned on by default and I don&apos;t have it enabled as well. So I don&apos;t think it will be LBSE patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951296</commentid>
    <comment_count>10</comment_count>
    <who name="">kari.pihkala</who>
    <bug_when>2023-04-26 03:15:44 -0700</bug_when>
    <thetext>I tested this on Safari Technology Preview 168 and it seems to be fixed. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>262048</attachid>
            <date>2015-09-29 00:46:34 -0700</date>
            <delta_ts>2015-09-29 00:46:34 -0700</delta_ts>
            <desc>CSS Animation of svg text element transform</desc>
            <filename>text-css-transform-color.svg</filename>
            <type>image/svg+xml</type>
            <size>1121</size>
            <attacher>kari.pihkala</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxz
dmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdC
b3g9IjAgMCAzMjAgMjQwIj4KICAgIDxzdHlsZT4KQC13ZWJraXQta2V5ZnJhbWVzIGEwX3QgeyAw
JSB7IC13ZWJraXQtdHJhbnNmb3JtOiB0cmFuc2xhdGUoNTBweCw1MHB4KTsgfSAxMDAlIHsgLXdl
YmtpdC10cmFuc2Zvcm06IHRyYW5zbGF0ZSgyMDBweCwyMDBweCk7IH0gfQpALXdlYmtpdC1rZXlm
cmFtZXMgYTBfZiB7IDAlIHsgZmlsbDogIzAwMDAwMDsgLXdlYmtpdC1hbmltYXRpb24tdGltaW5n
LWZ1bmN0aW9uOiBzdGVwcygxKTsgfSAxMDAlIHsgZmlsbDogI2ZmZmYwMDsgLXdlYmtpdC1hbmlt
YXRpb24tdGltaW5nLWZ1bmN0aW9uOiBzdGVwcygxKTsgfSB9CkBrZXlmcmFtZXMgYTBfdCB7IDAl
IHsgdHJhbnNmb3JtOiB0cmFuc2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