Closed Bug 1766584 Opened 2 years ago Closed 2 years ago

Drop-shadow renders wrong for blur-radius 1px on 150% scaling displays

Categories

(Core :: Graphics: WebRender, defect, P3)

Firefox 99
defect

Tracking

()

RESOLVED DUPLICATE of bug 1765013

People

(Reporter: raimund.schluessler+github, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(6 files)

Attached image 00_1px_150%_broken.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0

Steps to reproduce:

Have a div element and apply the CSS filter drop-shadow with a blur-radius of 1px and no x or y offset like so

filter: drop-shadow(0px 0px 1px #4444dd);

Look at the resulting drop-shadow on a display with scaling set to 150 %.

Actual results:

The drop shadow is offset to the top left and does not show on all sides of the element if is is viewed on a display with the scaling set to 150 %. Taking a screenshot with the Firefox screenshot tool shows the correct result, though (hence, the screenshot shows a different image than displayed to the user in Firefox).
A drop-shadow with a blut-radius larger than 1 px works fine as well.

Expected results:

The drop-shadow should render symmetrically on all sides of the element if no offset is given even with a blur-radius of 1px.

Attached image 01_2px_150%_good.png
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout
Ever confirmed: true
Product: Firefox → Core
Component: Layout → Graphics: WebRender

Thanks for the bug report. Could you please go to about:support, click on "copy text to clipboard", and add it as an attachment to this bug? Thanks

Flags: needinfo?(raimund.schluessler+github)
Attached file about_support_win.txt
Flags: needinfo?(raimund.schluessler+github)

While playing a bit more with the drop-shadow, I realized the issue is not limited to 1px blur-radius and a certain screen scaling, but occurs at various combinations of website zoom and blur-radius with varying intensity. While zooming in and out, the position of the drop-shadow behind the element changes. I attached a GIF to show the issue better.

This happens on both my Windows machine (for which I added the about:support config) and my Ubuntu machine (22.04, bundled Firefox). Let me know if you want the about:support config of the Linux machine as well.

Attached image DropShadow.gif

Seems like this could be a snapping issue? Any ideas Andrew?

Blocks: wr-snap
Severity: -- → S3
Flags: needinfo?(aosmond)
Priority: -- → P3
See Also: → 1765013

Thanks for the link, Mayank.

Raimund, could you please test version 100 and see if this issue has now been fixed?

Flags: needinfo?(raimund.schluessler+github)

Yes, indeed it is fixed in FF 100. Thank you very much!

Flags: needinfo?(raimund.schluessler+github)
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(aosmond)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: