Closed Bug 1685324 Opened 3 years ago Closed 7 months ago

Generated content (:before/:after) and mix-blend-mode and backdrop filter work inconsistently

Categories

(Core :: Graphics: WebRender, defect)

Firefox 84
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox84 --- affected
firefox85 --- affected
firefox86 --- affected

People

(Reporter: stephan, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached image blend-mode.png

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:84.0) Gecko/20100101 Firefox/84.0

Steps to reproduce:

Here is an example: https://jsfiddle.net/dy9vf6Lp/2/

Three wrappers have generated content with :before/:after, one of which has a mix-blend-mode and the other has a backdrop filter applied. In the first wrapper the :before pseudo-element has the blend mode and the :after pseudo-element has the backdrop filter; in the second wrapper, it’s vice versa (:before has filter, :after has blend mode). In the third wrapper there is just a blend mode applied to the :after pseudo-element.

Actual results:

The blend mode seems to fail if it is applied to an element after another element with backdrop filter. If you add a backdrop filter to #example3:before the blend mode works on the previous wrapper’s generated content.

Also, turn around the applied properties on #example3:before and #example3:after (i. e. change “before” to “after” and vice versa, so that the blend mode is applied to :before and the backdrop filter is applied to :after) and you’ll see the blend mode working in the third wrapper, too.

Expected results:

The blend mode should work regardless of the order of application, and especially in unrelated elements.

Component: Untriaged → Layout: Generated Content, Lists, and Counters
Product: Firefox → Core

Managed to reproduce on Windows 10 x64, Ubuntu 20.04 x64 and on MacOS 10.15.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → All
Component: Layout: Generated Content, Lists, and Counters → Graphics: WebRender
Blocks: 1816630

This is what I get on the latest Nightly.
Stephan, do you still see this bug on latest Nightly (or release version)?

Flags: needinfo?(stephan)

I don’t see this bug in Firefox 118.0.1, so I guess this is fixed. Thanks very much.

Thanks for confirming!

Status: NEW → RESOLVED
Closed: 7 months ago
Flags: needinfo?(stephan)
Resolution: --- → FIXED
Resolution: FIXED → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: