<?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>259646</bug_id>
          
          <creation_ts>2023-07-31 06:47:52 -0700</creation_ts>
          <short_desc>[svg] applying `rx` or `ry` through CSS exclusively has no effect</short_desc>
          <delta_ts>2023-12-18 09:46:54 -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>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=266090</see_also>
    
    <see_also>https://github.com/web-platform-tests/wpt/pull/43629</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kari.pihkala</reporter>
          <assigned_to name="Antoine Quint">graouts</assigned_to>
          <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>jbstrater</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>1968849</commentid>
    <comment_count>0</comment_count>
      <attachid>467161</attachid>
    <who name="">kari.pihkala</who>
    <bug_when>2023-07-31 06:47:52 -0700</bug_when>
    <thetext>Created attachment 467161
rect-rx-animation.svg

CSS animating the SVG &lt;rect&gt; element rx and ry radius properties has no effect. See the attached rect-rx-animation.svg or this fiddle: https://jsfiddle.net/861prg29/

The blue rectangle doesn&apos;t animate its radius as expected.

The green rectangle does animate its radius, because it has its rx attribute set to a non-zero value. But, setting the attribute to a non-zero value shouldn&apos;t be necessary.

The expected result is that both rectangles are animated. Note that animating the ry property has the same bug as the rx property.

Tested on Safari 16.5.2 (18615.2.9.11.10) and Safari Tech Preview Release 174 (Safari 17.0, WebKit 18616.1.22.1).

Firefox 115 and Chrome 115 animate both rectangles as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1969898</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-08-07 06:48:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/113500023&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1998950</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2023-12-12 06:26:49 -0800</bug_when>
    <thetext>Querying the computed style I can see that the animations is indeed applied through our style system. However, the rendering does not account for it. My guess is that we have a quick check for `rx` and `ry` being set on an element and not accounting for the RenderStyle.

In fact this seems unrelated to animations and strictly a CSS integration with SVG problem since:

… &lt;rect width=&quot;50&quot; height=&quot;50&quot; rx=&quot;1&quot; style=&quot;rx: 10px&quot; /&gt;

will yield a rectangle with rounded corners while this:

&lt;rect width=&quot;50&quot; height=&quot;50&quot; style=&quot;rx: 10px&quot; /&gt;

… will not. Clearly having the `rx` attribute is important for rendering of the `rx` value set through CSS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1998963</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2023-12-12 07:04:13 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/21679</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1998964</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2023-12-12 07:04:36 -0800</bug_when>
    <thetext>Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/43629</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999195</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-12-12 23:10:46 -0800</bug_when>
    <thetext>Committed 271970@main (0eba4b6cab17): &lt;https://commits.webkit.org/271970@main&gt;

Reviewed commits have been landed. Closing PR #21679 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2000454</commentid>
    <comment_count>6</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2023-12-18 09:46:54 -0800</bug_when>
    <thetext>*** Bug 266090 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>467161</attachid>
            <date>2023-07-31 06:47:52 -0700</date>
            <delta_ts>2023-07-31 06:47:52 -0700</delta_ts>
            <desc>rect-rx-animation.svg</desc>
            <filename>rect-rx-animation.svg</filename>
            <type>image/svg+xml</type>
            <size>567</size>
            <attacher>kari.pihkala</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxz
dmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMjAwIDEw
MCI+CgogICAgPHN0eWxlPgpAa2V5ZnJhbWVzIHJ4YW5pbSB7IDAlIHsgcng6IDEwcHg7IH0gMTAw
JSB7IHJ4OiAyMHB4OyB9IH0KICAgIDwvc3R5bGU+CgogICAgPCEtLSB0aGlzIGJsdWUgcmVjdCBp
c24ndCBhbmltYXRlZCBhcyBleHBlY3RlZCAtLT4KICAgIDxyZWN0IHg9IjMwIiB5PSIzMCIgd2lk
dGg9IjUwIiBoZWlnaHQ9IjQwIiBzdHJva2U9ImJsYWNrIiBmaWxsPSJibHVlIiBzdHlsZT0iYW5p
bWF0aW9uOiAxcyBsaW5lYXIgYm90aCByeGFuaW07Ii8+CgogICAgPCEtLSB0aGlzIGdyZWVuIHJl
Y3QgaXMgYW5pbWF0ZWQgYXMgZXhwZWN0ZWQgLS0+CiAgICA8cmVjdCB4PSIxMjAiIHk9IjMwIiB3
aWR0aD0iNTAiIGhlaWdodD0iNDAiIHN0cm9rZT0iYmxhY2siIGZpbGw9ImdyZWVuIiByeD0iMTAi
IHN0eWxlPSJhbmltYXRpb246IDFzIGxpbmVhciBib3RoIApyeGFuaW07Ii8+Cgo8L3N2Zz4K
</data>

          </attachment>
      

    </bug>

</bugzilla>