div with border-radius has visible "halo"/"fringe" of background color, outside the border
Categories
(Core :: Graphics, defect, P3)
Tracking
()
People
(Reporter: dholbert, Unassigned)
References
Details
(Keywords: regression, testcase, Whiteboard: [gfx-noted])
Attachments
(11 files)
(deleted),
text/html
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
text/html
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
text/html
|
Details | |
(deleted),
image/png
|
Details |
Reporter | ||
Comment 1•6 years ago
|
||
Reporter | ||
Comment 2•6 years ago
|
||
Reporter | ||
Comment 3•6 years ago
|
||
Reporter | ||
Comment 4•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 5•6 years ago
|
||
Reporter | ||
Comment 6•6 years ago
|
||
Reporter | ||
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
Reporter | ||
Comment 9•6 years ago
|
||
Reporter | ||
Comment 10•6 years ago
|
||
Reporter | ||
Comment 11•6 years ago
|
||
Reporter | ||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 15•6 years ago
|
||
Reporter | ||
Comment 17•6 years ago
|
||
I'm seeing this issue on the "New" badges on nextdoor.com, for what it's worth. Here's a screenshot.
Here's the HTML they're using, roughly (which is roughly equivalent to the already-attached testcases here, and which triggers the issue for me in a local testcase):
<!DOCTYPE html>
<style>
.new-badge {
display: inline-block;
border: 1px #F9F9FA solid;
border-radius: 4px;
background-color: #0099BA;
color: white;
}
</style>
<body>
<div class="new-badge">New</div>
Comment 18•3 years ago
|
||
Can this still be reproduced or can we close this Bug. Works for me by now
Reporter | ||
Comment 19•3 years ago
|
||
Yes, this can still be reproduced. If I load testcase 1 in current Nightly 98.0a1 (2022-01-13) and inspect with a zoom tool (e.g. the Gnome Accessibility "Zoom" Feature, or take a screenshot and zoom in in a graphics editor), then it's clear that there are reddish pixels outside the white border, as shown in comment 3. (While I'm here, I'll drop the mention of Google Inbox from the bug summary, since that product no longer exists.)
Reporter | ||
Updated•3 years ago
|
Reporter | ||
Comment 20•3 years ago
|
||
Also worth noting: this bug is only reproducible if the testcase's border is 1 display pixel in thickness.
(e.g. with the attached testcases which use 1 CSS pixel as the border width, this bug is only reproducible if you have 100% pixel-scaling, i.e. no High-DPI configuration at all. So the bug doesn't reproduce if I load testcase 1 on my 4K Samsung monitor, configured at max-resolution with 200% pixel scaling in Ubuntu. However, if I modify the testcase to use 0.5px
as the border-width (i.e. one display pixel), then the bug does reproduce on that monitor.)
I think this is just because the "fringe" here is just one or two display-pixels of overflowing background-color. So if the border is more than one display pixel of thickness, then there's no noticeable jump between the border and the overflowing background-color.
Comment 21•3 years ago
|
||
I looked at this code as part of other work, and it seems that the border painting check added in bug 704399 has not been used at all for a while now. WebRender does check if there is a border item following a background item1, but does not use the flag.
Reporter | ||
Comment 22•2 years ago
|
||
Just noticed this on Nextdoor.com again, this time on the "unread notifications count" badge.
Here's a reduced testcase of this instance, using the styling taken directly from the site.
Reporter | ||
Comment 23•2 years ago
|
||
Here's what testcase 3 looks like for me, on Ubuntu 22.04 with 100% pixel scaling (no HiDPI).
Updated•2 years ago
|
Description
•