Skip to content

Commit a154fc3

Browse files
authored
Create focus.md
As focused is not great context with a test for current focus
1 parent eb1cfe4 commit a154fc3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pages/glossary/focus.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Focus
3+
key: focus
4+
unambiguous: true
5+
objective: true
6+
input_aspects:
7+
- CSS styling
8+
---
9+
10+
An element is said to have _focus_ when the element matches the [`:focus` pseudo-class](https://drafts.csswg.org/selectors-4/#focus-pseudo) uninterruptedly for a period of 1 second after a user stopped interacting with the page.
11+
12+
The 1 second time span is an arbitrary limit which is not included in WCAG. Given the possibility of the focus state of elements being managed through scripts, testing the focused state of an element consistently would be impractical without a time limit.

0 commit comments

Comments
 (0)