Open Bug 1921777 Opened 9 months ago Updated 9 months ago

Setting `display: none` on ::backdrop does not remove it

Categories

(Core :: Web Painting, defect)

Firefox 131
defect

Tracking

()

People

(Reporter: random_n0body, Unassigned, NeedInfo)

Details

Attachments

(1 file)

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

Steps to reproduce:

  1. Visit https://codepen.io/depict_daniel/pen/OJKyoMY
  2. Click "toggle backdrop visibility"

Actual results:

The backdrop gets more transparent but the background is still faded out

Expected results:

The backdrop gets removed entirely, as it does in both safari and chrome

Possible duplicate of https://bugzilla.mozilla.org/show_bug.cgi?id=1836560 But that one seems to be about a test failure and abandoned, thought I'd report this as this actually presents an issue on our website/app

Not sure if this belongs in CSS Parsing and Computation. Please move if there's a better component.

Component: Untriaged → Layout
Product: Firefox → Core
Attached file testcase

I removed all stuff related to transitions (to make sure this is not related to the display:none animation), and this is still reproducible.

I expect this is a bug related to ::backdrop implementation with display:none.

I set Web Painting based on Bug 1064843.
Please feel free to move back to layout if this is not belonging to Web Painting.

Severity: -- → S3
Component: Layout → Web Painting
Severity: S3 → --
Status: UNCONFIRMED → NEW
Ever confirmed: true

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

For more information, please visit BugBot documentation.

Flags: needinfo?(tnikkel)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: