<?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>297770</bug_id>
          
          <creation_ts>2025-08-22 01:26:05 -0700</creation_ts>
          <short_desc>filter: url() ignored when backdrop-filter applied</short_desc>
          <delta_ts>2025-08-28 16:41:12 -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>WebKit Nightly Build</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 15</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=184601</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=245510</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>philipp.sklorz.development</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>hurst-status09</cc>
    
    <cc>karlcow</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>2138189</commentid>
    <comment_count>0</comment_count>
      <attachid>476487</attachid>
    <who name="">philipp.sklorz.development</who>
    <bug_when>2025-08-22 01:26:05 -0700</bug_when>
    <thetext>Created attachment 476487
test case

When a the backdrop-filter and filter property are applied to the same element, referencing a svg filter with `filter: url()` has no effect. This is unexpected since using a filter function like `filter: invert()` works.

Steps to reproduce:
-------------------
open the attached test case or see https://codepen.io/2pinch/pen/VYvxWeM

Expected results:
-----------------
both squares should be green

Notes
-----
- Tested in Webkit 299043@main and Safari 18.6 (20621.3.11.11.3)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2138625</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2025-08-25 10:38:14 -0700</bug_when>
    <thetext>Accelerated filters (including backdrop-filter) can&apos;t use SVG filters, sadly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2138626</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-08-25 10:38:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/159117210&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2138882</commentid>
    <comment_count>3</comment_count>
    <who name="">philipp.sklorz.development</who>
    <bug_when>2025-08-26 13:21:33 -0700</bug_when>
    <thetext>Ah, that&apos;s unfortunate. Is there a way to make an element switch to the non-accelerated filter path? My current case is to apply this to a single 50x50px element which I suspect to be uncritical performance-wise for a filter chain without heavy stuff like blurs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2139280</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-08-28 00:24:34 -0700</bug_when>
    <thetext>*** Bug 297732 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2139281</commentid>
    <comment_count>5</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-08-28 00:26:23 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 245510 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2139343</commentid>
    <comment_count>6</comment_count>
    <who name="">philipp.sklorz.development</who>
    <bug_when>2025-08-28 06:04:22 -0700</bug_when>
    <thetext>While this is related to bug 245510 this isn&apos;t strictly a duplicate. The given example works in Gecko, which also doesn&apos;t support using svg filter in backdrop-filter, but allows `filter: url(#...)` when a backdrop-filter is applied.
This is only intended to provide additional context, which I hope will be helpful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2139526</commentid>
    <comment_count>7</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-08-28 16:41:12 -0700</bug_when>
    <thetext>OOOps you are right my bad.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>476487</attachid>
            <date>2025-08-22 01:26:05 -0700</date>
            <delta_ts>2025-08-22 01:26:05 -0700</delta_ts>
            <desc>test case</desc>
            <filename>filter-url-ignored-when-backdrop-filter-applied.html</filename>
            <type>text/html</type>
            <size>1038</size>
            <attacher>philipp.sklorz.development</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxtZXRhIGNoYXJzZXQ9InV0Zi04Ij4KPHRpdGxlPmZpbHRlcjogdXJs
KCkgaWdub3JlZCB3aGVuIGJhY2tkcm9wLWZpbHRlciBhcHBsaWVkPC90aXRsZT4KCjxwPkV4cGVj
dGVkOiB0d28gZ3JlZW4gYm94ZXMuPC9wPgo8ZGl2IGNsYXNzPSJib3ggcC0xIj48L2Rpdj4KPGRp
diBjbGFzcz0iZmlsdGVyLXN2ZyBwLTEiPjwvZGl2Pgo8ZGl2IGNsYXNzPSJib3ggcC0yIj48L2Rp
dj4KPGRpdiBjbGFzcz0iZmlsdGVyLWZuIHAtMiI+PC9kaXY+Cgo8c3ZnPgogICAgPGZpbHRlciBp
ZD0iaW52ZXJ0IiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgogICAgICAgIDxm
ZUNvbXBvbmVudFRyYW5zZmVyPgogICAgICAgICAgICA8ZmVGdW5jUiB0eXBlPSJ0YWJsZSIgdGFi
bGVWYWx1ZXM9IjEgMCIgLz4KICAgICAgICAgICAgPGZlRnVuY0cgdHlwZT0idGFibGUiIHRhYmxl
VmFsdWVzPSIxIDAiIC8+CiAgICAgICAgICAgIDxmZUZ1bmNCIHR5cGU9InRhYmxlIiB0YWJsZVZh
bHVlcz0iMSAwIiAvPgogICAgICAgIDwvZmVDb21wb25lbnRUcmFuc2Zlcj4KICAgIDwvZmlsdGVy
Pgo8L3N2Zz4KCjxzdHlsZT4KICAgIC5ib3ggewogICAgICAgIGJhY2tncm91bmQ6ICNiZjQwYmY7
IC8qIGR1bGwgbWFnZW50YSAqLwogICAgfQoKICAgIC5maWx0ZXItc3ZnIHsKICAgICAgICBmaWx0
ZXI6IHVybCgjaW52ZXJ0KTsKICAgICAgICBiYWNrZHJvcC1maWx0ZXI6IHNhdHVyYXRlKDIpOwog
ICAgfQoKICAgIC5maWx0ZXItZm4gewogICAgICAgIGZpbHRlcjogaW52ZXJ0KDEpOwogICAgICAg
IGJhY2tkcm9wLWZpbHRlcjogc2F0dXJhdGUoMik7CiAgICB9CgogICAgLnAtMSwgLnAtMiB7CiAg
ICAgICAgcG9zaXRpb246IGFic29sdXRlOwogICAgICAgIHdpZHRoOiAxMDBweDsKICAgICAgICBo
ZWlnaHQ6IDEwMHB4OwogICAgICAgIHRvcDogMTAwcHg7CiAgICB9CgogICAgLnAtMSB7CiAgICAg
ICAgbGVmdDogNjBweDsKICAgIH0KCiAgICAucC0yIHsKICAgICAgICBsZWZ0OiAyNDBweDsKICAg
IH0KPC9zdHlsZT4K
</data>

          </attachment>
      

    </bug>

</bugzilla>