New issue
Advanced search Search tips

Issue 780463 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: 2017-11-20
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Applying cursor style to scroller causes scrollbar to disappear

Reported by deepak.a...@gmail.com, Nov 1 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Steps to reproduce the problem:
1. Create an element apply overflow:auto and a custom cursor for this.
2. Add content to this such that a scrollbar shows up
3. Attempt to style the scrollbar's cursor to be different from #1

What is the expected behavior?
Hovering the mouse over the container shows the move cursor and hovering over the scrollbar area shows a different cursor

What went wrong?
The scrollbar disappears

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 61.0.3163.100  Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 

Works as expected on FF
 

Comment 1 Deleted

Comment 2 Deleted

Components: Blink>Scroll

Comment 4 Deleted

Labels: Needs-Triage-M61
Labels: Needs-Feedback
NextAction: 2017-11-20
Can you provide a reproduction URI?
I have been trying add a comment to this bug report, but my comments show up as deleted, trying again...
https://jsfiddle.net/deepakanand/d5zd3jfk/

Project Member

Comment 8 by sheriffbot@chromium.org, Nov 6 2017

Cc: dtapu...@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "dtapuska@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: bokan@chromium.org
Owner: eirage@chromium.org
Status: Assigned (was: Unconfirmed)
Should we change this code to deal with custom scrollbars?

https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/input/EventHandler.cpp?sq=package:chromium&l=403

Over to Ella to take a look since she has been doing cursor work in the past.

Comment 10 by bokan@chromium.org, Nov 13 2017

Labels: -OS-Windows
Summary: Applying cursor style to scroller causes scrollbar to disappear (was: Applying cursor styles on scrollbar )
Reproduces on Mac too so removing Windows label.
Status: WontFix (was: Assigned)
scrollbar disappear is because background color not set for customize scrollbar, not because of setting cursor.

And chrome doesn't support customize scrollbar cursor via "-webkit-scrollbar". 
Won't fix since "-webkit-scrollbar" is non-standard feature.
can you explain why the scrollbar does not disappear in other browsers?

Also the behavior has changed in Chrome version 62, i do not see the behavior that was seen in v 61 where the cursor over the scrollbar is the same as the cursor over the rest of the container
To see what i mean, open this fiddle in Chrome v61 and v62: https://jsfiddle.net/d5zd3jfk/4/

Move mouse over the scrollbar area

In v61, the cursor remains as move cursor
In v62, the cursor changes to default 

> can you explain why the scrollbar does not disappear in other browsers?

Firefox doesn't support "-webkit-scrollbar". Safari has same behavior.

> the behavior has changed in Chrome version 62

Yes, it's a bug fixed in  crbug.com/290466 

Comment 14 by bokan@chromium.org, Nov 15 2017

The reason the scrollbar doesn't disappear in other browser is because only Safari and Chrome support -webkit-scrollbar, the other browsers simply ignore it. What you're telling the browser by adding that style is that you're going to supply the scrollbar style, but then you only set the cursor property so the scrollbars don't have a background color (they're transparent).

Re: cursor change, I suspect this was changed recently to improve interop between browsers. Safari, Edge, and Firefox don't apply the cursor property of the scroller when the mouse is over the scrollbar. Now Chrome behaves the same way. 


thanks for the detailed background folks !
The NextAction date has arrived: 2017-11-20

Sign in to add a comment