<?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>304911</bug_id>
          
          <creation_ts>2026-01-04 11:42:44 -0800</creation_ts>
          <short_desc>SVG filter referencing element with huge stroke fails to display</short_desc>
          <delta_ts>2026-04-10 13:03:11 -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>FIXED</resolution>
          
          <see_also>https://github.com/web-platform-tests/wpt/pull/59111</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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>ana.tudor.lhnh</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2169133</commentid>
    <comment_count>0</comment_count>
      <attachid>477899</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2026-01-04 11:42:44 -0800</bug_when>
    <thetext>Created attachment 477899
Test

The attachment shows a bug where a filter referencing an SVG element with a huge stroke fails to display.

The same SVG stand-alone displays fine.


Works:
```
        &lt;line x1=&quot;-50%&quot; x2=&quot;150%&quot; transform=&quot;rotate(45)&quot; stroke=&quot;blue&quot; stroke-width=&quot;300%&quot; stroke-dasharray=&quot;15%&quot;&gt;&lt;/line&gt;
```

Fails:
```
        &lt;line x1=&quot;-50%&quot; x2=&quot;150%&quot; transform=&quot;rotate(45)&quot; stroke=&quot;blue&quot; stroke-width=&quot;100%&quot; stroke-dasharray=&quot;15%&quot;&gt;&lt;/line&gt;
```

Even when the blue dashes show, the red rectangle has the wrong size.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169139</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2026-01-04 12:02:19 -0800</bug_when>
    <thetext>This happens because the input image to the `&lt;feImage&gt;` becomes huge, and we start scaling down incorrectly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169140</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-01-04 12:02:36 -0800</bug_when>
    <thetext>&lt;rdar://problem/167516452&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169423</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2026-01-05 11:34:01 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/56096</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169526</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-01-05 17:48:04 -0800</bug_when>
    <thetext>Committed 305136@main (c08dafc2c51a): &lt;https://commits.webkit.org/305136@main&gt;

Reviewed commits have been landed. Closing PR #56096 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2198933</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2026-04-10 13:03:11 -0700</bug_when>
    <thetext>Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/59111</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>477899</attachid>
            <date>2026-01-04 11:42:44 -0800</date>
            <delta_ts>2026-01-04 11:42:44 -0800</delta_ts>
            <desc>Test</desc>
            <filename>feimage.html</filename>
            <type>text/html</type>
            <size>1555</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgICA8bWV0YSBjaGFyc2V0
PSJVVEYtOCI+CiAgICA8dGl0bGU+ZmVJbWFnZSB1c2luZyB0cmFuc2Zvcm1lZCBTVkcgc291cmNl
IChubyBGaXJlZm94OyBDaHJvbWUsIEVwaXBoYW55IGJ1Z2d5IGluIGRpZmZlcmVudCB3YXlzKTwv
dGl0bGU+CiAgICA8bGluayByZWw9ImNhbm9uaWNhbCIgaHJlZj0iaHR0cHM6Ly9jb2RlcGVuLmlv
L3RoZWJhYnlkaW5vL3Blbi9Wd2dOcXB2Ij4gIAo8c3R5bGU+CiAgICBodG1sLCBib2R5LCBkaXYg
ewogICAgICAgIGRpc3BsYXk6IGdyaWQ7CiAgICB9CgogICAgaHRtbCB7CiAgICAgICAgaGVpZ2h0
OiAxMDAlOwogICAgfQoKICAgIC5sYXllciB7CiAgICAgICAgZ3JpZC1hcmVhOiAxLzE7CiAgICAg
ICAgcGxhY2Utc2VsZjogY2VudGVyOwogICAgICAgIHBsYWNlLWNvbnRlbnQ6IGNlbnRlcjsKICAg
ICAgICB3aWR0aDogNjZ2dzsKICAgICAgICBoZWlnaHQ6IDQ0dmg7CiAgICB9CgogICAgLnRlc3Qg
ewogICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTsKICAgICAgICBiYWNrZ3JvdW5kOiBwdXJwbGU7
CiAgICAgICAgZmlsdGVyOiB1cmwoI2YpOwogICAgfQogICAgLnRlc3Qgc3ZnIHsKICAgICAgICBw
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