Skip to content

Commit

Permalink
Add an accessibility considerations appendix
Browse files Browse the repository at this point in the history
As suggested by APA while discussing #6351
  • Loading branch information
frivoal committed Nov 3, 2021
1 parent b6e5e1c commit 5f878c0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions css-scrollbars-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -402,3 +402,31 @@ or on overflowing elements with scrollbars in the page.</p>
<p>No.</p>
</li>
</ol>

<h2 class="no-num" id="accessibility-considerations">Appendix D. Considerations for accessibility</h2>

This appendix is <em>informative</em>.

As noted [[#scrollbar-width|in the definition of the property]],
authors need to be mindful of the accessibility implications
of using ''scrollbar-width: thin''.
Scrollbars are a important piece of the user agent's interface,
and it is not appropriate for a web site author to change their size over aesthetic considerations.
The property is available to support cases
where the author wants to indicate that in a cramped area of the web page
a thin scrollbar would be a more effective use of space.
However, ultimately, the user, through their user agent,
needs to have the last word on such things.

Using this property in such cases is preferable to
authors building a custom thin-looking scrollbar in via script or proprietary extensions,
because it does give the user the opportunity to override it.

[=User style sheets=] do provide such an override,
and additionally, user agents are encouraged to expose a setting
letting users express that they do not want thin scrollbars to be used.

The CSS Working Group also acknowledges the needs of some users
to have scrollbars that are wider than is typical.
Operating systems and user agents can offer a means to let users express that preference,
and in such cases, CSS will honor that choice.

0 comments on commit 5f878c0

Please sign in to comment.