Closed Bug 1778899 Opened 2 years ago Closed 2 years ago

Setting `filter: drop-shadow()` on an element causes its background color to shift if it has an partial alpha value

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox-esr91 --- disabled
firefox-esr102 --- disabled
firefox102 --- disabled
firefox103 --- disabled
firefox104 --- ?

People

(Reporter: itiel_yn8, Unassigned)

References

(Regression)

Details

Attachments

(1 file)

STR:

  1. Open https://jsitor.com/beg0dq3xR-
  2. Hover the Google logo, see its background color
  3. Toggle the filter: drop-shadow() off and hover the Google logo again

AR:
See that the background color is different.

ER:
I would expect the background color to remain the same, but in Chrome I can see the same result (with setting RGBA instead, as they don't support color-mix() atm) as in Firefox.

Attachment #9284843 - Attachment mime type: text/plain → text/html

This is much more obvious when the drop shadow is not black-ish. The background color is an input to the shadow, so it's expected to be darker.

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

Attachment

General

Created:
Updated:
Size: