<?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>297620</bug_id>
          
          <creation_ts>2025-08-19 14:50:31 -0700</creation_ts>
          <short_desc>REGRESSION (Safari 18.x): backdrop-filter does not work when referencing CSS variable on macOS Sonoma</short_desc>
          <delta_ts>2026-02-12 01:05:07 -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>Layout and Rendering</component>
          <version>Safari 18</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 14</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=289800</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="Jordan Pittman">jordan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>b.houdusse</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>2137536</commentid>
    <comment_count>0</comment_count>
      <attachid>476457</attachid>
    <who name="Jordan Pittman">jordan</who>
    <bug_when>2025-08-19 14:50:31 -0700</bug_when>
    <thetext>Created attachment 476457
Example file that showcases the bug

REGRESSION (Safari 18.x): Backdrop Blur does not work when using variable on macOS Sonoma

The following document does not apply a backdrop filter when using macOS Sonoma and Safari 18.6. Later OS versions work as expected:
```html
&lt;style&gt;
.blur-value-in-var {
  --a: 25px;
  -webkit-backdrop-filter: blur(var(--a));
  backdrop-filter: blur(var(--a));
}

.container {
  position: relative;
}

.overlay {
  position: absolute;
  inset: 1rem;
  width: 4rem;
  background-color: rgb(127 127 127 / 0.25);
}

.block {
  background: black;
  width: 4rem;
  height: 4rem;
}
&lt;/style&gt;
&lt;div class=&quot;container&quot;&gt;
  &lt;div class=&quot;overlay blur-value-in-var&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;block&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
```

It seems to break whenever the filter uses a `var(…)` function. This can be the value portion or the entire filter function inside the variable. Additionally, I discovered that the unprefixed `backdrop-filter` property *does not work at all* Safari 18.6 on macOS Sonoma while it does in Sequoia and above.

I&apos;ve attached a file with a couple more test cases.

Tested:
- macOS 14.6.1 + Safari 17.6 - works (except for unprefixed backdrop-filter obvs)

- macOS 14.6.1 + Safari 18.6 - broken
- macOS 14.7.7 + Safari 18.6 - broken
- macOS 14.7.7 + Safari TP - broken

- macOS 15.6 + Safari 18.6 - works
- macOS 26 b7 + Safari 26 - works
- macOS 26 b7 + Safari TP - works

Notes:
- I don&apos;t know the exact version of Safari this regressed in but I *think* its some version of 18 given that Safari 17.6 worked
- I wasn&apos;t able to test 298917@main on Sonoma w/ Safari 17.6 because it won&apos;t open any Safari windows.
- I wasn&apos;t able to test 298917@main on Sonoma w/ Safari 18.6 because it crashes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2137867</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-08-20 17:00:29 -0700</bug_when>
    <thetext>&lt;rdar://problem/158810759&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2145412</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2025-09-23 18:14:16 -0700</bug_when>
    <thetext>Does this still reproduce in Safari in the final version of macOS Tahoe?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2164296</commentid>
    <comment_count>3</comment_count>
    <who name="Jordan Pittman">jordan</who>
    <bug_when>2025-12-08 17:55:19 -0800</bug_when>
    <thetext>No, this does not reproduce on Safari 26.1 + macOS 26. But it *does* reproduce when using Safari 26.1 on macOS 14.8.2 (at least in a virtual machine).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>476457</attachid>
            <date>2025-08-19 14:50:31 -0700</date>
            <delta_ts>2025-08-19 14:50:31 -0700</delta_ts>
            <desc>Example file that showcases the bug</desc>
            <filename>bug.html</filename>
            <type>text/html</type>
            <size>871</size>
            <attacher name="Jordan Pittman">jordan</attacher>
            
              <data encoding="base64">PHN0eWxlPgogIC5ibHVyLXZhbHVlLWluLXZhciB7CiAgICAtLWE6IDI1cHg7CiAgICAtd2Via2l0
LWJhY2tkcm9wLWZpbHRlcjogYmx1cih2YXIoLS1hKSk7CiAgICBiYWNrZHJvcC1maWx0ZXI6IGJs
dXIodmFyKC0tYSkpOwogIH0KCiAgLmJsdXItZm4taW4tdmFyIHsKICAgIC0tYTogYmx1cigyNXB4
KTsKICAgIC13ZWJraXQtYmFja2Ryb3AtZmlsdGVyOiB2YXIoLS1hKTsKICAgIGJhY2tkcm9wLWZp
bHRlcjogdmFyKC0tYSk7CiAgfQoKICAuYmx1ci1uby12ZW5kb3IgewogICAgYmFja2Ryb3AtZmls
dGVyOiBibHVyKDI1cHgpOwogIH0KCiAgLmNvbnRhaW5lciB7CiAgICBwb3NpdGlvbjogcmVsYXRp
dmU7CiAgfQoKICAub3ZlcmxheSB7CiAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICBpbnNldDog
MXJlbTsKICAgIHdpZHRoOiA0cmVtOwogICAgYmFja2dyb3VuZC1jb2xvcjogcmdiKDEyNyAxMjcg
MTI3IC8gMC4yNSk7CiAgfQoKICAuYmxvY2sgewogICA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