Skip to content

Commit d517bca

Browse files
committed
[selectors-4] Add :target-within, resolves #457
1 parent 0933c54 commit d517bca

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

selectors-4/Overview.bs

+14
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ Selectors Overview</h2>
242242
<td>an E element being the target of the referring URL
243243
<td>[[#the-target-pseudo]]
244244
<td>3
245+
<tr>
246+
<td><code>E:target-within</code>
247+
<td>an E element that is the target of the referring URL or contains an element that does.
248+
<td>[[#the-target-within-pseudo]]
249+
<td>4
245250
<tr>
246251
<td><code>E:scope</code>
247252
<td>an E element being a designated reference element
@@ -1971,6 +1976,15 @@ The Target Pseudo-class: '':target''</h3>
19711976
</pre>
19721977
</div>
19731978

1979+
<h3 id="the-target-within-pseudo">
1980+
The Generalized Target Pseudo-class: '':target-within''</h3>
1981+
1982+
The <dfn id='target-within-pseudo'>:target-within</dfn> pseudo-class applies to elements for which the '':target'' pseudo class applies.
1983+
1984+
An element also matches '':target-within''
1985+
if one of its descendants in the <a>flat tree</a>
1986+
(including non-element nodes, such as text nodes)
1987+
matches the conditions for matching '':target''.
19741988

19751989
<h3 id="the-scope-pseudo">
19761990
The Reference Element Pseudo-class: '':scope''</h3>

0 commit comments

Comments
 (0)