Closed Bug 1645782 Opened 6 years ago Closed 5 years ago

Setting scrollbar-color creates unwanted border

Categories

(Core :: Widget: Win32, defect, P3)

77 Branch
Unspecified
Windows
defect

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: ladybabyele, Assigned: emilio)

Details

(Whiteboard: [layout:backlog:quality])

Attachments

(4 files)

Attached image firefox_G7SUsr7crv.png —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0

Steps to reproduce:

Just add scrollbar-color: #ba8fe6 #fdfdfd; to any code that has a scrollbar

Actual results:

there is a small black border around (sometimes just on one side) of the scrollbar itself.

Expected results:

there shouldnt be a black border around the scrollbar. if you take away the color, the black border is not there anymore

Component: Untriaged → Theme
Component: Theme → Layout: Scrolling and Overflow
Product: Firefox → Core

Can you provide the source used to create the example?

Flags: needinfo?(ladybabyele)

sure i just made a screen from this site
https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color

you probably need to change the color to something lighter to see it much clearer

Looks isolated to Windows.

Severity: -- → S4
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(ladybabyele)
OS: Unspecified → Windows
Priority: -- → P3
Summary: scrollbar-color creates border → Setting scrollbar-color creates unwanted border
Whiteboard: [layout:backlog:quality]

I wasn't able to reproduce this on a Windows machine. I did notice the text in the box was sans-serif rather than serif for me though, so I suspect my settings are a bit different than the reporter's.

I made a codepen where I can see this bug:
https://codepen.io/jj-kamminga/pen/RwarpBG

Windows 10 Pro 64bit
Firefox 79.0

I'm having the same issue. With light scrollbar it is very noticeable. I'm attaching screenshots with scrollbar-color enabled and disabled, you can see the difference.

If you set widget.disable-native-theme-for-content=true in about:config and refresh, do you see it? That would help to know if it's a native windows theme issue or a deeper bug.

(In reply to Emilio Cobos Álvarez (:emilio) from comment #9)

If you set widget.disable-native-theme-for-content=true in about:config and refresh, do you see it? That would help to know if it's a native windows theme issue or a deeper bug.

No, changing this setting fixes the issue. Good call.

Thanks!

Component: Layout: Scrolling and Overflow → Widget: Win32

(In reply to Emilio Cobos Álvarez (:emilio) from comment #9)

If you set widget.disable-native-theme-for-content=true in about:config and refresh, do you see it? That would help to know if it's a native windows theme issue or a deeper bug.

This resolves the issue for me as well. But how would I fix it for my users, who are not going to be changing their about:config?

That means bug 1535761 will fix this (since it'll effectively turn that on by default). But I'll try to poke at the win32 code in the meantime anyhow.

Flags: needinfo?(emilio)
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2e3ed236c0bb Correctly snap windows custom scrollbar track / thumbs. r=mstange
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
QA Whiteboard: [qa-85b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: