<?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>308017</bug_id>
          
          <creation_ts>2026-02-16 17:17:20 -0800</creation_ts>
          <short_desc>SVG patternTransform.baseVal.clear() should cause patternTransform to be ignored</short_desc>
          <delta_ts>2026-03-11 01:10:36 -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>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://wpt.live/svg/pservers/scripted/pattern-transform-clear.svg</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>309642</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="Karl Dubost">karlcow</assigned_to>
          <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>2182232</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-02-16 17:17:20 -0800</bug_when>
    <thetext>http://wpt.fyi/svg/pservers/scripted/pattern-transform-clear.svg
Go to http://wpt.live/svg/pservers/scripted/pattern-transform-clear.svg

PASS in Firefox and Chrome
FAIL in Safari

The markup is 

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:h=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;title&gt;SVG Paint Servers: Clear should cause patternTransform to be ignored.&lt;/title&gt;
  &lt;metadata&gt;
    &lt;h:link rel=&quot;help&quot; href=&quot;https://svgwg.org/svg2-draft/pservers.html#PatternElementPatternTransformAttribute&quot;/&gt;
    &lt;h:link rel=&quot;match&quot; href=&quot;../reftests/reference/green-100x100.svg&quot;/&gt;
  &lt;/metadata&gt;
  &lt;pattern id=&quot;p1&quot; patternTransform=&quot;scale(2)&quot;/&gt;
  &lt;pattern id=&quot;p&quot; href=&quot;#p1&quot; viewBox=&quot;0 0 50 50&quot; patternTransform=&quot;scale(1)&quot; width=&quot;100%&quot; height=&quot;100%&quot;&gt;
    &lt;rect fill=&quot;red&quot; width=&quot;50&quot; height=&quot;50&quot;/&gt;
    &lt;rect fill=&quot;green&quot; width=&quot;25&quot; height=&quot;25&quot;/&gt;
  &lt;/pattern&gt;
  &lt;rect fill=&quot;url(#p)&quot; width=&quot;100&quot; height=&quot;100&quot;/&gt;
  &lt;script&gt;&lt;![CDATA[
    document.getElementById(&quot;p&quot;).patternTransform.baseVal.clear();
  ]]&gt;&lt;/script&gt;
&lt;/svg&gt;


SVGTransformList is defined as
https://w3c.github.io/svgwg/svg2-draft/coords.html#InterfaceSVGTransformList

[Exposed=Window]
interface SVGTransformList {

  readonly attribute unsigned long length;
  readonly attribute unsigned long numberOfItems;

  undefined clear();
  SVGTransform initialize(SVGTransform newItem);
  getter SVGTransform getItem(unsigned long index);
  SVGTransform insertItemBefore(SVGTransform newItem, unsigned long index);
  SVGTransform replaceItem(SVGTransform newItem, unsigned long index);
  SVGTransform removeItem(unsigned long index);
  SVGTransform appendItem(SVGTransform newItem);
  setter undefined (unsigned long index, SVGTransform newItem);

  // Additional methods not common to other list interfaces.
  SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
  SVGTransform? consolidate();
};


The clear() method is defined as:
https://w3c.github.io/svgwg/svg2-draft/types.html#__svg__SVGNameList__clear


&gt; The clear method is used to remove all items in the list. When clear() is called, the following steps are run:
&gt; 
&gt; 1. If the list is read only, then throw a NoModificationAllowedError.
&gt; 2. Detach and then remove all elements in the list.
&gt; 3. If the list reflects an attribute, or represents the base value of an object that reflects an attribute, then reserialize the reflected attribute.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2182241</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-02-16 17:54:48 -0800</bug_when>
    <thetext>This is also failing with LBSE. http://wpt.live/svg/pservers/scripted/pattern-transform-clear.svg</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2182250</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-02-16 18:27:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/170518953&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2182269</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2026-02-16 19:47:46 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/58833</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>