Skip to content

Commit b8dd5b9

Browse files
committed
[selectors] Fix definition of :focus
Closes w3c#1240
1 parent afae499 commit b8dd5b9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

selectors/Overview.bs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,12 +2035,15 @@ The Input Focus Pseudo-class: '':focus''</h3>
20352035
(accepts keyboard or mouse events, or other forms of input).
20362036

20372037
There may be document language or implementation specific limits on
2038-
which elements can acquire '':focus''.
2039-
For example, [[HTML5]] defines a <a href="http://www.whatwg.org/html/selectors.html#selector-active">list of activatable elements</a>.
2040-
2041-
If the document language has defined additional ways by which an element can match '':active'',
2042-
the same ways must apply to elements matching '':focus'' as well,
2043-
except that the parent of an element that matches '':focus'' must not match '':focus''.
2038+
which elements can acquire :focus.
2039+
For example, [[HTML]] defines a list of <a href="https://html.spec.whatwg.org/multipage/interaction.html#focusable-area">focusable areas</a>.
2040+
2041+
Document languages may define additional ways in which an element can match '':focus'',
2042+
except that the '':focus'' pseudo class must not automatically propagate to the parent element
2043+
(see '':focus-within'' if matching on the parent is desired).
2044+
Note: it may still apply to the parent element
2045+
if made to propagate due to other mechanisms,
2046+
but not merely due to being the parent.
20442047

20452048
<h3 id="the-focusring-pseudo">
20462049
The Input Focus-Ring Pseudo-class: '':focus-ring''</h3>

0 commit comments

Comments
 (0)