Issue metadata
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 descriptionUserAgent: 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
,
Nov 1 2017
,
Nov 1 2017
,
Nov 6 2017
Can you provide a reproduction URI?
,
Nov 6 2017
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/
,
Nov 6 2017
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
,
Nov 13 2017
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.
,
Nov 13 2017
Reproduces on Mac too so removing Windows label.
,
Nov 14 2017
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.
,
Nov 15 2017
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
,
Nov 15 2017
> 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
,
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.
,
Nov 15 2017
thanks for the detailed background folks !
,
Nov 20 2017
The NextAction date has arrived: 2017-11-20 |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 Deleted