question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flag websites with custom scrollbars that are very thin

See original GitHub issue

See here for more details:

Open UI: Force bad scrollbar designs to apply accessibility patches Google Chrome: Issue 1251575

Feature request summary

1_kh08HW91JyQ2FMUyHGRA9w

Website developers/designers can now customize the scrollbar in the browser, using this spec: https://drafts.csswg.org/css-scrollbars-1/

Browser support is now over 97% https://caniuse.com/?search=scrollbar

Issue

I have come across several websites that have customized the browser scrollbar. But their websites have really bad Scroll Jank issues!

“Jank” is the term used to describe the visual hiccup that occurs when the system is not able to build and provide frames in time for them to be drawn to the screen at the requested cadence (60hz, or higher). Jank is most apparent when scrolling, when what should be a smoothly animated flow has hiccups, where the movement pauses along the way for one or more frames as the app takes longer to render content than the duration of a frame on the system.

Because of the JANK issues; when I try to use the mouse wheel to scroll down the webpage. The jank is preventing the page from scrolling down. So I try to grab the scrollbar with the mouse pointer and move the scrollbar down.

However, I have seen quite a few websites with really thin scrollbars that I end up spending several minutes trying to grab a scrollbar that is say 1-3px wide for example.

What is the motivation or use case for changing this?

Improve web accessibility standards.

How is this beneficial to Lighthouse?

Google Lighthouse should flag websites with poorly designed custom scrollbars giving a bad user experience and causing web accessibility issues.

e.g. making the main webpage scrollbar very thin say 1-3px width.

image

Google Lighthouse has a set standard for Tap targets e.g.

Targets that are smaller than 48 px by 48 px or closer than 8 px apart fail the audit.

I’m suggesting Google Lighthouse flag websites with very thin webpage scrollbars that fail to meet a certain minimum width threshold, e.g.

Scrollbars with a width under 5px fail the audit.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
patrickhulcecommented, Sep 28, 2021

Thanks @summercms these are great examples to consider! We’ll be sure to discuss this in our next sync 👍

0reactions
daipluspluscommented, Oct 4, 2021

For reference, I described this accessibility/usability issue previously here: https://github.com/GoogleChrome/lighthouse/issues/11292

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Style Scrollbars with CSS - DigitalOcean
In this tutorial, you will learn how to use CSS to customize scrollbars to support modern browsers.
Read more >
How to Create a Beautiful Custom Scrollbar for Your Site in ...
1. Setting up the HTML and CSS. We'll start with a basic container element with some placeholder text, which is the element to...
Read more >
Custom Scrollbar - embed a scroll to your website! (2022)
Add Elfsight Custom Scrollbar widget to your website in a few clicks! Upgrade your website providing amazing customer service in 1-2-3!
Read more >
How to enable Thin Scrollbars in Microsoft Edge Browser
However, this flag option is only available in Microsoft Edge Official Version ... Such websites would still load their custom scrollbars, ...
Read more >
CSS scrollbar styling | Can I use... Support tables for HTML5 ...
4 Can be enabled by setting the layout.css.scrollbar-colors.enabled and layout.css.scrollbar-width.enabled flags to true.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found