Box shadow renders incorrectly
Categories
(Core :: Graphics: WebRender, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr140 | --- | unaffected |
| firefox150 | --- | unaffected |
| firefox151 | --- | fixed |
| firefox152 | --- | fixed |
People
(Reporter: HaitraMysh, Assigned: gw)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:151.0) Gecko/20100101 Firefox/151.0
Steps to reproduce:
When using a display scaling of 125%, the box shadow may render incorrectly. A thin border appears on the right and bottom edges of the box, as shown in the attached image. The issue disappears at some zoom levels when zooming a page in or out.
A reproduction can be seen here: https://jsfiddle.net/HaitraMysh/any0hpf5/
This behavior started occurring in Firefox 151 beta. Using the mozregression tool, I traced the issue to this changeset: https://phabricator.services.mozilla.com/D289944
The problem does not occur in other browsers.
Actual results:
Box shadow rendered incorrectly.
Expected results:
Box shadow should render correctly.
Comment 1•4 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebRender' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•4 months ago
|
Comment 2•4 months ago
|
||
:gw, since you are the author of the regressor, bug 2026399, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 3•4 months ago
|
||
create_quad_primitive rounds prim_rect in device space, but
element_offset_rel_prim and dest_rect_offset were computed against the
un-rounded prim_rect.min. The shader reconstructs absolute positions
from the rounded local_prim_rect.p0, shifting the analytical element
clip by up to half a device pixel and producing a one-pixel seam on
trailing edges at fractional device coordinates.
Updated•4 months ago
|
| Assignee | ||
Updated•4 months ago
|
Comment 5•4 months ago
|
||
| bugherder | ||
Comment 6•4 months ago
|
||
The patch landed in nightly and beta is affected.
:gw, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox151towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Updated•4 months ago
|
Updated•4 months ago
|
Comment 7•4 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined/Reason for urgency: Visual artifacts on box-shadows at some zoom levels
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: Small patch
- String changes made/needed?: No
- Is Android affected?: yes
| Assignee | ||
Comment 8•4 months ago
|
||
create_quad_primitive rounds prim_rect in device space, but
element_offset_rel_prim and dest_rect_offset were computed against the
un-rounded prim_rect.min. The shader reconstructs absolute positions
from the rounded local_prim_rect.p0, shifting the analytical element
clip by up to half a device pixel and producing a one-pixel seam on
trailing edges at fractional device coordinates.
Original Revision: https://phabricator.services.mozilla.com/D297513
Updated•4 months ago
|
Updated•4 months ago
|
Description
•