Skip to content

Commit 83b6885

Browse files
committed
[selectors] make the :focus pseudo class propagate the same was as the :active pseudo class does, except for matching on the parent element.
1 parent 8690e62 commit 83b6885

2 files changed

Lines changed: 58 additions & 50 deletions

File tree

selectors/Overview.bs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2202,6 +2202,10 @@ The input focus pseudo-class '':focus''</h3>
22022202
which elements can acquire '':focus''.
22032203
For example, [[HTML5]] defines a <a href="http://www.whatwg.org/html/selectors.html#selector-active">list of activatable elements</a>.
22042204

2205+
If the host language has defined additional ways by which an element can match '':active'',
2206+
the same ways must apply to elements matching '':focus'' as well,
2207+
except that the parent of an element that matches '':focus'' must not match '':focus''.
2208+
22052209
<h3 id="drag-pseudos">
22062210
The drag-and-drop pseudo-class '':drop'' and '':drop()''</h3>
22072211

0 commit comments

Comments
 (0)