<?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>295730</bug_id>
          
          <creation_ts>2025-07-10 11:57:13 -0700</creation_ts>
          <short_desc>REGRESSION (macOS 26): A large border-radius can cause shadows with a non-zero spread to render incorrectly</short_desc>
          <delta_ts>2025-07-10 15:19:19 -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>Layout and Rendering</component>
          <version>Safari 26</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 26</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>295213</dup_id>
          
          <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="Jordan Pittman">jordan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2129067</commentid>
    <comment_count>0</comment_count>
      <attachid>475866</attachid>
    <who name="Jordan Pittman">jordan</who>
    <bug_when>2025-07-10 11:57:13 -0700</bug_when>
    <thetext>Created attachment 475866
An HTML file that showcases the buggy shadow behavior

In macOS 26 (I tested beta 3) Safari and Safari Tech Preview can incorrectly render box shadows when the border-radius is large enough and there is a non-zero spread value. For example, a spread of `1px` with a radius &gt;= 16,781,246px draws the shadow incorrectly. Likewise, for a spread of `-1px`, a radius of `&gt;= 16,781,379px` draws the shadow incorrectly.

The following HTML can be used to reproduce the issue. For the negative spreads you shouldn&apos;t be able to see anything and the positive spreads should produce a slight border around the circle. Instead a black square inset/outset by the spread value is drawn behind the element in all four cases.

```html
&lt;div
  style=&quot;
    width: 8rem; height: 8rem;
    box-shadow: 0 0 0 -1px #000;
    border-radius: 16781379px;
  &quot;
&gt;&lt;/div&gt;

&lt;div
  style=&quot;
    width: 8rem; height: 8rem;
    box-shadow: 0 0 0 -1px #000;
    border-radius: calc(infinity * 1px);
  &quot;
&gt;&lt;/div&gt;

&lt;div
  style=&quot;
    width: 8rem; height: 8rem;
    box-shadow: 0 0 0 1px #000;
    border-radius: 16781246px;
  &quot;
&gt;&lt;/div&gt;

&lt;div
  style=&quot;
    width: 8rem; height: 8rem;
    box-shadow: 0 0 0 1px #000;
    border-radius: calc(infinity * 1px);
  &quot;
&gt;&lt;/div&gt;
```

Notes:
1. I am testing in a VM so it&apos;s possible that the actual values are environment depdendent and might be slightly different.
2. Using `calc(infinity * 1px)` produces a much larger value and as such is also affected by this bug.
3. The other values of the box shadow do affect the rendering but it&apos;s still bugged — just with a different final appearance. e.g. Giving the shadow a radius causes a blur to appear but applied to an incorrectly sized &quot;bounding box&quot;.
4. iOS 26 (I tested beta 3) is also affected.
5. Safari and STP on macOS Sequoia are **NOT** affected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2129129</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-07-10 14:59:45 -0700</bug_when>
    <thetext>&lt;rdar://problem/155561314&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2129140</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2025-07-10 15:19:19 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 295213 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>475866</attachid>
            <date>2025-07-10 11:57:13 -0700</date>
            <delta_ts>2025-07-10 11:57:13 -0700</delta_ts>
            <desc>An HTML file that showcases the buggy shadow behavior</desc>
            <filename>buggy-shadows.html</filename>
            <type>text/html</type>
            <size>508</size>
            <attacher name="Jordan Pittman">jordan</attacher>
            
              <data encoding="base64">PGRpdgogIHN0eWxlPSIKICAgIHdpZHRoOiA4cmVtOyBoZWlnaHQ6IDhyZW07CiAgICBib3gtc2hh
ZG93OiAwIDAgMCAtMXB4ICMwMDA7CiAgICBib3JkZXItcmFkaXVzOiAxNjc4MTM3OXB4OwogICIK
PjwvZGl2PgoKPGRpdgogIHN0eWxlPSIKICAgIHdpZHRoOiA4cmVtOyBoZWlnaHQ6IDhyZW07CiAg
ICBib3gtc2hhZG93OiAwIDAgMCAtMXB4ICMwMDA7CiAgICBib3JkZXItcmFkaXVzOiBjYWxjKGlu
ZmluaXR5ICogMXB4KTsKICAiCj48L2Rpdj4KCjxkaXYKICBzdHlsZT0iCiAgICB3aWR0aDogOHJl
bTsgaGVpZ2h0OiA4cmVtOwogICAgYm94LXNoYWRvdzogMCAwIDAgMXB4ICMwMDA7CiAgICBib3Jk
ZXItcmFkaXVzOiAxNjc4MTI0NnB4OwogICIKPjwvZGl2PgoKPGRpdgogIHN0eWxlPSIKICAgIHdp
ZHRoOiA4cmVtOyBoZWlnaHQ6IDhyZW07CiAgICBib3gtc2hhZG93OiAwIDAgMCAxcHggIzAwMDsK
ICAgIGJvcmRlci1yYWRpdXM6IGNhbGMoaW5maW5pdHkgKiAxcHgpOwogICIKPjwvZGl2Pg==
</data>

          </attachment>
      

    </bug>

</bugzilla>