Closed Bug 2063261 Opened 20 days ago Closed 14 days ago

Container icons are clipped in context menus and about:preferences#containers

Categories

(Firefox :: Containers, defect, P2)

Firefox 155
defect

Tracking

()

VERIFIED FIXED
156 Branch
Tracking Status
firefox155 --- verified
firefox156 --- verified

People

(Reporter: acornestean, Assigned: baku)

References

Details

Attachments

(3 files)

Attached image 2026-08-13_14h08_00.png

Affected versions:
Nightly 155.0a1 (20260812202037)

Description:
Container icons inside the colored container circles are cut off around the edges.
On Windows and Linux the icons are clipped in every context menu entry point and in the about:preferences#containers page.
On macOS, the icons are clipped only in the about:preferences#containers page, as the container context menus don’t show the colored container circle on this particular platform.

Also some icons might be off-center inside the colored circles, as far as I can tell as the padding around the icons looks thinner in some parts.

See attached screenshot for more details.

Steps to reproduce:

  1. Go to about:preferences#containers and create containers with all the available icons
  2. Observe the container icons are clipped around the edges in all context menus on Windows and Linux, and in the container list in about:preferences on Windows, Linux and macOS.

Expected results:
Container icons inside the colored container circles should be fully displayed.

Actual results:
Container icons are clipped in context menus and about:preferences#containers

Duplicate of this bug: 2062917
Severity: -- → S3
Priority: -- → P2

The issue is the artwork. Some glyphs are drawn flush against the 16x16 viewBox, with long straight edges sitting exactly on the boundary: chill has 8.2 units of dead-straight vertical edge on x=0 and x=16 (more than half the icon height), briefcase 6.6. That is what reads as "cut off" once there is tinted background on both sides of it. Separately, the ink boxes are inconsistent across the set (briefcase 16x15, food 13x14, tree 13x16, fence 14x13), which is why the padding inside the circle looks uneven from container to container.

It's actually a CSS issue. I was wrong in comment 2. Working on a fix.

Assignee: nobody → amarchesini
Status: NEW → ASSIGNED
Pushed by amarchesini@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/65a30e4d9f70 https://hg.mozilla.org/integration/autoland/rev/29777a9c8484 Stop the round container icon background from clipping the icon itself r=desktop-theme-reviewers,tgiles
Status: ASSIGNED → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 156 Branch

The patch landed in nightly and beta is affected.
:baku, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(amarchesini)
Flags: needinfo?(amarchesini)

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Containers icons are cropped in the edges
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing: n/a
  • Risk associated with taking this patch: low
  • Explanation of risk level: This is just a missing CSS entry
  • String changes made/needed?: none
  • Is Android affected?: no
Attachment #9628286 - Flags: approval-mozilla-beta?
Attachment #9628286 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified as Fixed. Tested on the latest Nightly (156.0a1/20260819210808) and Beta (155.0b3/20260820023821 from https://treeherder.mozilla.org/jobs?repo=mozilla-beta&revision=55696d61662a7a48bbb944f0215b024f52c46ef0) under Windows 11, Ubuntu 25.10 and macOS 11.3.1.

On Windows and Linux, container icons from both context menus and about:preferences#containers are now fully displayed, without experiencing any clipping.
On macOS, container icons from about:preferences#containers are now fully displayed, without any clipping.

Note that on Beta, the Nova pref had to be enabled in about:config to verify the bug, as without Nova enabled, the issue does not occur.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: