Open Bug 1849323 Opened 2 years ago Updated 1 year ago

[HiDPI] box-shadow rendered unevenly at uneven scaling factors, e.g. 150%, 250%

Categories

(Core :: Graphics: WebRender, defect)

Firefox 116
Unspecified
All
defect

Tracking

()

People

(Reporter: david.p.warner, Assigned: gw)

References

(Blocks 1 open bug)

Details

(Keywords: polish)

Attachments

(2 files)

+++ This bug was initially created as a clone of Bug #1181554 +++

This is happening for me at 150% zoom in Windows 11 and Linux (X.Org). The original test case illustrates the problem: https://bugzilla.mozilla.org/attachment.cgi?id=8630995

STR:

  • change your OS scaling factor to 150%
  • log out or restart if your OS suggests doing so (logging out should be sufficient on Windows)
  • log in again, start Firefox, load the reduced testcase that phlsa is going to attach

Actual result: the box-shadow is one device pixel thick on some sides, two devices pixels on others

Expected result: As with e.g. CSS borders, the box-shadow should have the same thickness on all four sides

Attached image Uneven border example

Strangely enough, if I use Firefox's built-in 'Take Screenshot' feature, the border is rendered correctly in the result (1px on all edges).

can repro on a Win11x64 machine.

Status: UNCONFIRMED → NEW
Ever confirmed: true

Tailwind UI uses box-shadow extensively for input field borders - this page has some good examples of uneven borders at 150%: https://tailwindui.com/components/application-ui/forms/form-layouts

The Cloudflare login page has another nice example: https://dash.cloudflare.com/login

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

For more information, please visit BugBot documentation.

Flags: needinfo?(jfkthame)
Component: Layout → Graphics: WebRender
Flags: needinfo?(jfkthame)

Can reproduce, windows 11, 150%. One extra pixel on the left and top of the square.

Dropping into gfx triage so the team knows about it. Also an ni for Markus since he did the parent work.

Blocks: gfx-triage
Severity: -- → S3
Flags: needinfo?(mstange.moz)
Keywords: polish

Glenn may have a better idea where the right place to snap the box shadow spread radius in WebRender is.

Flags: needinfo?(mstange.moz)
Flags: needinfo?(gwatson)
Assignee: nobody → gwatson
Flags: needinfo?(gwatson)
No longer blocks: gfx-triage

Windows at 150% is "pretty much a default configuration" in ahale's words, so this should probably be S2 as a rendering defect in common CSS at for those users.

Severity: S3 → S2
Duplicate of this bug: 1857642

This doesn't qualify as S2.

Severity: S2 → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: