Skip to content

Commit 1b43921

Browse files
mregofrivoal
authored andcommitted
[css-ui] Use :focus-visible instead of :focus
Use :focus-visible instead of :focus in the explanation about when UAs paint outlines.
1 parent d1883c4 commit 1b43921

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

css-ui-4/Overview.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ spec:selectors-4; type:selector; text::enabled
9191
spec:selectors-4; type:selector; text::disabled
9292
spec:css-color-4; type:property; text:color
9393
spec:selectors-4; type:selector; text::focus
94+
spec:selectors-4; type:selector; text::focus-visible
9495
</pre>
9596

9697
<style>
@@ -208,7 +209,7 @@ ways:
208209

209210
<li>Outlines may be non-rectangular.
210211

211-
<li>UAs often render outlines on elements in the '':focus'' state.
212+
<li>UAs often render outlines on elements in the '':focus-visible'' state.
212213
</ol>
213214

214215
The outline properties control the style of these dynamic outlines.
@@ -222,7 +223,7 @@ This supersedes the stacking of outlines as defined in <a href="https://www.w3.o
222223
in particular people with disabilities
223224
who may not be able to interact with the page in any other fashion,
224225
depend on the outline being visible
225-
on elements in the '':focus'' state,
226+
on elements in the '':focus-visible'' state,
226227
thus authors must not make the outline invisible on such elements
227228
without making sure an alternative highlighting mechanism is provided.
228229
</strong>

0 commit comments

Comments
 (0)