Skip to content

Commit 4f71c7f

Browse files
committed
[selectors] Define that :active propagates to ancestors, and that host languages can define more ways to match :active.
1 parent a2083a4 commit 4f71c7f

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

selectors/Overview.bs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2151,7 +2151,7 @@ The pointer hover pseudo-class '':hover''</h3>
21512151
(e.g., a pen device that does not detect hovering)
21522152
are still conforming.
21532153

2154-
The parent of an element that is '':hover'' is also in that state.
2154+
The parent of an element that matches '':hover'' also matches '':hover''.
21552155

21562156
Note: When an element that is '':hover'' is in a <a>shadow tree</a>,
21572157
the <a>host element</a> (and its parents) are also in the '':hover'' state. (See [[css-scoping-1]])
@@ -2181,8 +2181,9 @@ The activation pseudo-class '':active''</h3>
21812181
which elements can become '':active''.
21822182
For example, [[HTML5]] defines a <a href="http://www.whatwg.org/html/selectors.html#selector-active">list of activatable elements</a>.
21832183

2184-
Selectors doesn't define if the parent of an element that is
2185-
':active' is also in that state.
2184+
The parent of an element that matches '':active'' also matches '':active''.
2185+
2186+
Host languages may define additional ways in which an element can match '':active''.
21862187

21872188
Note: An element can be both
21882189
':visited' and ':active' (or ':link' and ':active').

selectors/Overview.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,7 +2385,7 @@ <h3 class="heading settled" data-level=9.1 id=the-hover-pseudo><span class=secno
23852385
(e.g., a pen device that does not detect hovering)
23862386
are still conforming.</p>
23872387

2388-
<p>The parent of an element that is <a class=css data-link-type=maybe href=#hover-pseudo title=:hover>:hover</a> is also in that state.</p>
2388+
<p>The parent of an element that matches <a class=css data-link-type=maybe href=#hover-pseudo title=:hover>:hover</a> also matches <a class=css data-link-type=maybe href=#hover-pseudo title=:hover>:hover</a>.</p>
23892389

23902390
<p class=note role=note>Note: When an element that is <a class=css data-link-type=maybe href=#hover-pseudo title=:hover>:hover</a> is in a <a data-link-type=dfn href=http://dev.w3.org/csswg/css-scoping-1/#shadow-tree title="shadow tree">shadow tree</a>,
23912391
the <a data-link-type=dfn href=http://dev.w3.org/csswg/css-scoping-1/#host-element0 title="host element">host element</a> (and its parents) are also in the <a class=css data-link-type=maybe href=#hover-pseudo title=:hover>:hover</a> state. (See <a data-biblio-type=informative data-link-type=biblio href=#biblio-css-scoping-1 title=css-scoping-1>[css-scoping-1]</a>)</p>
@@ -2415,8 +2415,9 @@ <h3 class="heading settled" data-level=9.2 id=the-active-pseudo><span class=secn
24152415
which elements can become <a class=css data-link-type=maybe href=#active-pseudo title=:active>:active</a>.
24162416
For example, <a data-biblio-type=informative data-link-type=biblio href=#biblio-html5 title=HTML5>[HTML5]</a> defines a <a href=http://www.whatwg.org/html/selectors.html#selector-active>list of activatable elements</a>.</p>
24172417

2418-
<p>Selectors doesn’t define if the parent of an element that is
2419-
':active' is also in that state.</p>
2418+
<p>The parent of an element that matches <a class=css data-link-type=maybe href=#active-pseudo title=:active>:active</a> also matches <a class=css data-link-type=maybe href=#active-pseudo title=:active>:active</a>.</p>
2419+
2420+
<p>Host languages may define additional ways in which an element can match <a class=css data-link-type=maybe href=#active-pseudo title=:active>:active</a>.</p>
24202421

24212422
<p class=note role=note>Note: An element can be both
24222423
':visited' and ':active' (or ':link' and ':active').</p>

0 commit comments

Comments
 (0)