Closed Bug 1734128 Opened 3 years ago Closed 3 years ago

Tab border thicker on 2 sides then on the other 2

Categories

(Firefox :: Tabbed Browser, defect, P1)

Desktop
Windows
defect
Points:
2

Tracking

()

VERIFIED FIXED
96 Branch
Tracking Status
firefox94 + wontfix
firefox95 --- wontfix
firefox96 --- verified

People

(Reporter: designakt, Assigned: amy)

References

Details

(Whiteboard: [fidefe-theme])

Attachments

(4 files)

As the attachment shows the border around a tab is thicker on the bottom and right, and thinner on the top and left side.

This shows on Windows 10 if UI is scaled to 150% - which is Windows default for my display. (Not sure how frequent that is the case across all Windows devices - I don't think we have telemetry on that scale)

This issue does not show on 100% or 200% UI scale, nor does it show on Mac no matter what scale is used there. In all those instances the border has the same thickness all around.

Component: Tabbed Browser → Theme

This specifically affects the tabstrip so I think tabbed browser is the right component.

:harry, could we add a set of Windows-only media queries setting the border width to the CSS equivalent of 1 or 2 device pixels, to avoid this issue? (Like the stuff from https://searchfox.org/mozilla-central/rev/9bc5dcea99c59dc18eae0de7064131aa20cfbb66/browser/themes/windows/browser-aero.css#141 onwards )

Blocks: 1725467
Component: Theme → Tabbed Browser
Flags: needinfo?(htwyford)
Whiteboard: [fidefe-theme]

[Tracking Requested - why for this release]:
The active tab looks ugly in Windows 10. This is a pre-existing issue, but many more users will see it with the new themes.

Assignee: nobody → achurchwell
Status: NEW → ASSIGNED

Hi all. Unfortunately, I can't seem to reproduce this issue using Windows 10 on VMware Fusion for some reason. Wanting to flag this as at risk, but will continue investigating.

I also cannot reproduce @150%DPI. Markus what is your resolution please?

Flags: needinfo?(mjaritz)
Priority: -- → P3

I can reproduce on my main machine, running Windows 10 at 150% zoom (which is what Markus also said in comment 0).

Note that this will depend on device pixel rounding done by layout. When I resize a window to make it smaller, or create more tabs, and then cycle through tabs with ctrl-tab, some tabs get a thicker right-hand border and some don't, and although for me, all tabs have a thicker bottom border, I imagine that that, too, might depend on specifics.

The simplest way to see the problem, I suspect, is to open a handful of tabs (3-5 will do) so they just fill a non-maximized window without overflow, and then horizontally resizing the window, squishing and/or enlarging the tabs by doing so. You can then see the tab border swapping between being thick and thin, depending on the exact window width.

Amy, does that help with reproducing this? Depending on your vmware setup, it may or may not be easier to repro at 125% or 175%.

Flags: needinfo?(mjaritz) → needinfo?(achurchwell)

Changing the priority to p1 as the bug is tracked by a release manager for the current beta.
See What Do You Triage for more information

Priority: P3 → P1

My Display resolution is 3840x2160px
at a Display Scale of 150%

Here is what it looks animated as Gijs described.

Also, I noticed that if I set the spread-radius of the box-shadow that creates this border to 1.3px (over 1px) this effect disappears. Seems more like a hack but maybe it can help. (I have not seen this negatively impact appearance at 100% or 175% scale)

Thanks for your help! I've been able to reproduce this issue, but, unfortunately, Markus's spread-radius fix does not work for me. Not sure why.[1]

https://searchfox.org/mozilla-central/source/browser/themes/shared/tabs.inc.css#563-568

Some things that seem to help but don't fix the issue entirely:

  • addition of inset seems to sharpen things.
  • use of outline or border and using thin for border-width. ex: outline: thin solid var(--tabs-border-color) — my thinking was that because the CSS spec does not define a hard value for thin/medium/thick that perhaps scaling would be more forgiving.

I have a hunch that something about box-shadow is not playing nicely with the zoom, but I am not sure.

[1] Happy to write a patch for the 1.3px suggestion if that works for others and chalk it up to a VMware fusion hiccup, also.

Flags: needinfo?(achurchwell)
Points: --- → 2
Flags: needinfo?(htwyford)

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(dao+bmo)
Attachment #9245815 - Attachment description: Bug 1734128 - Tab border irregular when scaled on Windows 10. r?gijs → Bug 1734128 - Tab border irregular when scaled on Windows 10. r?dao
Pushed by achurchwell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f8ed785eea6d Tab border irregular when scaled on Windows 10. r=desktop-theme-reviewers,dao

Comment on attachment 9245815 [details]
Bug 1734128 - Tab border irregular when scaled on Windows 10. r?dao

Beta/Release Uplift Approval Request

  • User impact if declined: Windows users who scale their display see uneven tab outlines.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): CSS-only change.
  • String changes made/needed:
Attachment #9245815 - Flags: approval-mozilla-beta?

Backed out changeset f8ed785eea6d (Bug 1734128) for causing bc failures on browser_ext_themes_tab_line.js.
Backout link
Push with failures
Failure Log

Flags: needinfo?(achurchwell)

Comment on attachment 9245815 [details]
Bug 1734128 - Tab border irregular when scaled on Windows 10. r?dao

We're building the RC for Fx94 today. This will have to ride the trains when it's ready.

Attachment #9245815 - Flags: approval-mozilla-beta? → approval-mozilla-beta-
Pushed by achurchwell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/02724ee795e9 Tab border irregular when scaled on Windows 10. r=desktop-theme-reviewers,dao
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
Regressions: 1738855
Flags: needinfo?(achurchwell)

Amy, is that something we would uplift to 95 beta or can it ride the 96 train? Thanks.

Flags: needinfo?(achurchwell)

Hello, could it be that this change has caused the regression reported in bug 1740788 ?

Regressions: 1740788

(In reply to Pascal Chevrel:pascalc from comment #17)

Amy, is that something we would uplift to 95 beta or can it ride the 96 train? Thanks.

Hi Pascal, this can ride the 96 train. Thanks!

Flags: needinfo?(achurchwell)
Flags: needinfo?(dao+bmo)
Regressions: 1742346
Flags: qe-verify+

I was able to reproduce the issue on Win10 using 95.0a1 (20211005215418) and verified as fixed on Win10 builds 96.0b2 and 97.0a1 (20211207155117).

Status: RESOLVED → VERIFIED
Attached image Screenshot.png
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: