Skip to content

Fix backdrop-filter prefix being overwritten instead of merged#1284

Open
cscnk52 wants to merge 1 commit into
parcel-bundler:masterfrom
cscnk52:fix/backdrop-filter-prefix-overwrite-
Open

Fix backdrop-filter prefix being overwritten instead of merged#1284
cscnk52 wants to merge 1 commit into
parcel-bundler:masterfrom
cscnk52:fix/backdrop-filter-prefix-overwrite-

Conversation

@cscnk52

@cscnk52 cscnk52 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

When both backdrop-filter and -webkit-backdrop-filter appear in the same rule, the FallbackHandler previously overwrote the vendor prefix of the first occurrence with the second. This caused the standard declaration to be lost on Chromium and Safari 18+ targets which do not support the WebKit-prefixed variant.

Merge prefixes from both declarations and re-resolve against browser targets so that only needed prefixes are emitted. Also fix the Safari upper bound from 17.6 to 18 to cover all versions that require the -webkit- prefix.

When both `backdrop-filter` and `-webkit-backdrop-filter` appear in the
same rule, the FallbackHandler previously overwrote the vendor prefix
of the first occurrence with the second. This caused the standard
declaration to be lost on Chromium and Safari 18+ targets which do not
support the WebKit-prefixed variant.

Merge prefixes from both declarations and re-resolve against browser
targets so that only needed prefixes are emitted. Also fix the Safari
upper bound from 17.6 to 18 to cover all versions that require the
-webkit- prefix.
@codspeed-hq

codspeed-hq Bot commented Jun 23, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 8 untouched benchmarks


Comparing cscnk52:fix/backdrop-filter-prefix-overwrite- (747e0db) with master (91bfa3f)

Open in CodSpeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant