Skip to content

Commit 17e8352

Browse files
committed
[selectors-4][editorial] Recommend that newly-created autofocused elements should indicate focus. w3c#7214
1 parent bbacc9f commit 17e8352

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

selectors-4/Overview.bs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,6 +2402,9 @@ The Focus-Indicated Pseudo-class: '':focus-visible''</h3>
24022402
Conversely, if the previously-focused element did not [=indicate focus=],
24032403
and a script causes focus to move elsewhere,
24042404
don't [=indicate focus=] on the newly focused element.
2405+
* If a newly-displayed element automatically gains focus
2406+
(such as an action button in a freshly opened dialog),
2407+
that element should [=indicate focus=].
24052408
</div>
24062409

24072410
User agents should also use '':focus-visible'' to specify the default focus style,

0 commit comments

Comments
 (0)