[HiDPI] box-shadow rendered unevenly at uneven scaling factors, e.g. 150%, 250%
Categories
(Core :: Graphics: WebRender, 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
| Reporter | ||
Comment 1•2 years ago
|
||
Strangely enough, if I use Firefox's built-in 'Take Screenshot' feature, the border is rendered correctly in the result (1px on all edges).
Comment 2•2 years ago
|
||
can repro on a Win11x64 machine.
| Reporter | ||
Comment 3•2 years ago
|
||
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
| Reporter | ||
Comment 4•2 years ago
|
||
| Reporter | ||
Comment 5•2 years ago
|
||
The Cloudflare login page has another nice example: https://dash.cloudflare.com/login
Comment 6•2 years ago
|
||
The severity field is not set for this bug.
:jfkthame, could you have a look please?
For more information, please visit BugBot documentation.
Updated•2 years ago
|
Comment 7•2 years ago
|
||
Can reproduce, windows 11, 150%. One extra pixel on the left and top of the square.
Comment 8•2 years ago
|
||
Dropping into gfx triage so the team knows about it. Also an ni for Markus since he did the parent work.
Comment 9•2 years ago
|
||
Glenn may have a better idea where the right place to snap the box shadow spread radius in WebRender is.
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Comment 10•2 years ago
|
||
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.
Updated•2 years ago
|
| Assignee | ||
Updated•1 year ago
|
Description
•