Closed Bug 1706048 Opened 4 years ago Closed 4 years ago

[macOS] Scrollbar in panels is offset

Categories

(Firefox :: Menus, defect, P2)

Firefox 89
Desktop
macOS
defect

Tracking

()

VERIFIED FIXED
90 Branch
Tracking Status
firefox88 --- disabled
firefox89 --- wontfix
firefox90 --- verified
firefox91 --- verified

People

(Reporter: csasca, Assigned: mconley)

References

(Blocks 2 open bugs)

Details

(Keywords: regressionwindow-wanted, Whiteboard: [proton-door-hangers] [priority:2a])

Attachments

(4 files)

Attached image scrollbar.png

Affected versions

  • Firefox 89.0a1

Affected platforms

  • macOS 10.15.7

Steps to reproduce

  1. Launch Firefox
  2. Open a panel which has a scrollbar (ex. library)

Expected result

  • The scrollbar is centered in its place

Actual result

  • The scrollbar is a bit offset to the right

Regression range

  • Will see for a regression

Additional notes

  • The issue can be seen in the attachment
Has Regression Range: --- → no
Has STR: --- → yes

I think the offset here wouldn't be noticeable if the background of the scrollbar was the same as the surrounding content. Markus, do you know if there is anything we can do about the scrollbar background color here? Hopefully this is as simple as setting scrollbar-color, but I don't have an environment ready at hand to test.

Flags: needinfo?(mstange.moz)

Yes, scrollbar-color accepts two colors, a thumb color and a track color. Setting the track color to transparent fixes this.
For example, scrollbar-color: rgba(255,255,255,0.3) transparent on .panel-subview-body seems to work well.

Flags: needinfo?(mstange.moz)
QA Whiteboard: [qa-regression-triage]

Hello! I observed that this issue no longer can be seen if Firefox 90.0a1 (20210421212740) is restarted. However, if the scrollbar is hovered or dragged the background is again displayed but with a lighter color. I don't know if this is expected. Please see attached screen recording.

Whiteboard: [proton-door-hangers]
Priority: -- → P2
Whiteboard: [proton-door-hangers] → [proton-door-hangers] [priority:2a]

(In reply to Alexandru Trif, QA [:atrif] from comment #3)

Hello! I observed that this issue no longer can be seen if Firefox 90.0a1 (20210421212740) is restarted. However, if the scrollbar is hovered or dragged the background is again displayed but with a lighter color. I don't know if this is expected. Please see attached screen recording.

I'm confused - what is your system "Show Scrollbars" pref set to? During the first part of the screen recording, it looks like it's set to "Always", because you can see the scrollbar track in the profile manager list. And then after the browser restart, it looks like it's set to "When scrolling", because the scrollbar in the panel now fades out. Did you maybe have it set to "Automatic" and used a different input device?

This bug only applies to "Always" visible scrollbars (also called "non-overlay" scrollbars or "classic" scrollbars).

Flags: needinfo?(alexandru.trif)

(In reply to Markus Stange [:mstange] from comment #4)

(In reply to Alexandru Trif, QA [:atrif] from comment #3)

Hello! I observed that this issue no longer can be seen if Firefox 90.0a1 (20210421212740) is restarted. However, if the scrollbar is hovered or dragged the background is again displayed but with a lighter color. I don't know if this is expected. Please see attached screen recording.

I'm confused - what is your system "Show Scrollbars" pref set to? During the first part of the screen recording, it looks like it's set to "Always", because you can see the scrollbar track in the profile manager list. And then after the browser restart, it looks like it's set to "When scrolling", because the scrollbar in the panel now fades out. Did you maybe have it set to "Automatic" and used a different input device?

This bug only applies to "Always" visible scrollbars (also called "non-overlay" scrollbars or "classic" scrollbars).

I was using the Automatically based on mouse or trackpad option but I didn't change the input device. I was using the same mouse USB connected since it's a mac M1 mini arm based. I don't know the expected behavior for this. Also if "Always" is used the bug is reproducible every time and no longer "fixes" the issue after restart. If more information is needed please let me know. Thank you!

Flags: needinfo?(alexandru.trif)

Thanks. I'm not sure why "Automatically" gives inconsistent behavior. Anyway, the fix for this bug will work independently of that - it'll work whenever non-overlay scrollbars are used.

I can reproduce this if using the OS's dark mode on macOS.

Assignee: nobody → mconley

Using color-mix, I'm able to make this look pretty close for dark, light and custom themes.

Note that the custom colouring goes away if the user hovers the scrollbar track with their
cursor. I don't think there's anything I can currently do about that.

Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/db539e6810fc Make mini scrollbar track transparent in panel-subview-body on macOS. r=harry,desktop-theme-reviewers
Regressions: 1710139
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
No longer regressions: 1710139

The patch landed in nightly and beta is affected.
:mconley, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(mconley)

ni'ing Shilpa to see if this is a bug we want to consider uplifting to 89.

Flags: needinfo?(mconley) → needinfo?(smohanty)
Flags: needinfo?(smohanty)
See Also: → 1710205
Flags: qe-verify+

This issue is fixed on Firefox 90.0b4 and Firefox 91.0a1 (2021-06-06) under macOS 10.15.7.

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

Attachment

General

Created:
Updated:
Size: