Skip to content

Commit dbbfd55

Browse files
[css-scrollbars-1] Make mentions of properties/values actual re… (#4800)
* Make mentions of properties/values actual references Both to visually differentiate them from surrounding text and to make them actual links once rendered/processed. * Update css-scrollbars-1/Overview.bs Co-Authored-By: Tab Atkins Jr. <jackalmage@gmail.com> * Update css-scrollbars-1/Overview.bs Co-Authored-By: Tab Atkins Jr. <jackalmage@gmail.com> Co-authored-by: Tab Atkins Jr. <jackalmage@gmail.com>
1 parent 1e75404 commit dbbfd55

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

css-scrollbars-1/Overview.bs

+5-5
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ PNG of the same in a browser that supports it currently)
138138
Implementations may ignore any of the colors
139139
if the corresponding part do not exist on the underlying platform.
140140

141-
When using scrollbar-color property with specific color values,
141+
When using 'scrollbar-color' property with specific color values,
142142
authors should ensure the specified colors have enough contrast between them.
143143
For keyword values, UAs should ensure the colors they use have enough contrast.
144144
UAs should ensure that their actual color values for
145-
scrollbar-color: light and scrollbar-color: dark
145+
''scrollbar-color/light'' and ''scrollbar-color/dark''
146146
should provide sufficient contrast with the element’s background
147-
(i.e. scrollbar-color: light on a light background and scrollbar-color: dark on a dark background
147+
(i.e. ''scrollbar-color/light'' on a light background and ''scrollbar-color/dark'' on a dark background
148148
should always have sufficient contrast)
149149
See
150150
<a href="https://www.w3.org/TR/WCAG21/#non-text-contrast">WCAG 2.1 SC 1.4.11 Non-text Contrast</a>
@@ -211,10 +211,10 @@ UAs should enforce a minimum actual size of scrollbar width per
211211
<a href="https://www.w3.org/TR/WCAG21/#target-size">WCAG 2.1 SC 2.5.5 Target Size</a>
212212
[[WCAG21]].
213213

214-
Authors that use scrollbar-width: none should provide an alternative/equivalent visual hint that
214+
Authors that use ''scrollbar-width/none'' should provide an alternative/equivalent visual hint that
215215
scrolling is possible and there is more content.
216216
For situations where an element is going to be scrolled by other means instead of direct user manipulation
217-
(e.g. programmatically), authors should use overflow: hidden instead of scrollbar-width: none.
217+
(e.g. programmatically), authors should use ''overflow: hidden'' instead of ''scrollbar-width/none''.
218218

219219
Note: Unlike 'overflow' (and overflow-*) properties,
220220
a scrollbar-width value set on the HTML body element is not propagated to the viewport.

0 commit comments

Comments
 (0)