Closed Bug 1776068 Opened 2 years ago Closed 2 years ago

backdrop-filter blur not working with linear gradient background

Categories

(Core :: Graphics: WebRender, defect)

Firefox 103
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: bugzilla, Assigned: gw)

References

Details

Attachments

(1 file)

Steps to reproduce:

Using Firefox 101 and 103, having a background-image as css style for the body-element.

background-image: linear-gradient(rgba(255, 0, 0, 0.3),rgba(44, 255, 0, 0.3)), url('relativeUrl') !important;

the css-class also has

background-blend-mode: normal, multiply;
backdrop-filter: blur(3px);

set.

Actual results:

The image does not blur.
Removing the linear-gradient allows blur to be applied to the image (as expected)

Expected results:

The blur-effect should be applied to the background-image with the gradient. (this is also how chromium does it)

The Bugbug bot thinks this bug should belong to the 'Core::Web Painting' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Web Painting
Product: Firefox → Core

Can you please attach a minimal html page that reproduces the issue you describe above? Also please attach the contents of your about:support here.

Flags: needinfo?(bugzilla)
Component: Web Painting → Graphics: WebRender
Attached file test.html

This is a small testpage that shows the unexpected behaviour

Flags: needinfo?(bugzilla)

can confirm that Nightly doesnt apply the blur and Chrome does.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Blocks: 1749625
Flags: needinfo?(gwatson)
Assignee: nobody → gwatson
Flags: needinfo?(gwatson)

This seems to work for me if I remove the background-blend-mode - I suspect that this involves creating a surface in the way gecko/wr currently works, which is what will end up becoming the backdrop root.

The severity field is not set for this bug.
:gw, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(gwatson)
Severity: -- → S3
Flags: needinfo?(gwatson)

(In reply to Glenn Watson [:gw] from comment #5)

This seems to work for me if I remove the background-blend-mode - I suspect that this involves creating a surface in the way gecko/wr currently works, which is what will end up becoming the backdrop root.

I can confirm removing background-blend-mode from elements which are behind the element with applied backdrop-filter (talking about z-index) is working.

Depends on: 1787089
Blocks: 1782590

Fixed by bug 1776068

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: