Skip to content

Commit

Permalink
[css-scrollbar] Beef-up note about scrollbar colors and interaction
Browse files Browse the repository at this point in the history
See #10591
  • Loading branch information
frivoal committed Sep 13, 2024
1 parent 54fc7c5 commit 63c9a6e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions css-scrollbars-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,13 @@ Value Definitions</h3>
(for example, when users choose a configuration option/setting that
always ensures a particular scrollbar color / use of system default scrollbars).

Note: When a user interacts with a scrollbar (e.g. hovering or activating),
implementations can alter which scrollbar colors apply to which scrollbar parts.
Note: Implementations can take advantage of the fact that they have full discretion
in how to apply the specified colors
in order to visually respond to user interactions with the scrollbar
(e.g. hovering or activating):
they could alter which scrollbar parts the specified colors apply to,
using darker or lighter shades of the specified colors,
more or less saturated variants…

If the user agent displays the scrollbar without the [=track=],
they must ensure reasonable contrast between the [=thumb=] and what is behind it.
Expand Down

0 comments on commit 63c9a6e

Please sign in to comment.