Skip to content

Commit 7cd155d

Browse files
committed
Add :any-link
1 parent 6c56777 commit 7cd155d

2 files changed

Lines changed: 23 additions & 8 deletions

File tree

selectors4/Overview.html

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,19 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
218218
<li><a href="#location"><span class=secno>7. </span> Location
219219
Pseudo-classes</a>
220220
<ul class=toc>
221-
<li><a href="#link"><span class=secno>7.1. </span> The link history
221+
<li><a href="#any-link-pseudo"><span class=secno>7.1. </span> The
222+
any-link pseudo-class: :any-link</a>
223+
224+
<li><a href="#link"><span class=secno>7.2. </span> The link history
222225
pseudo-classes: :link and :visited</a>
223226

224-
<li><a href="#here-pseudo"><span class=secno>7.2. </span> The link
227+
<li><a href="#here-pseudo"><span class=secno>7.3. </span> The link
225228
location pseudo-class :local-link</a>
226229

227-
<li><a href="#target-pseudo"><span class=secno>7.3. </span> The target
230+
<li><a href="#target-pseudo"><span class=secno>7.4. </span> The target
228231
pseudo-class :target</a>
229232

230-
<li><a href="#scope-pseudo"><span class=secno>7.4. </span> The scope
233+
<li><a href="#scope-pseudo"><span class=secno>7.5. </span> The scope
231234
pseudo-class :scope</a>
232235
</ul>
233236

@@ -1685,7 +1688,13 @@ <h3 id=id-selectors><span class=secno>6.6. </span> ID selectors</h3>
16851688

16861689
<h2 id=location><span class=secno>7. </span> Location Pseudo-classes</h2>
16871690

1688-
<h3 id=link><span class=secno>7.1. </span> The link history pseudo-classes:
1691+
<h3 id=any-link-pseudo><span class=secno>7.1. </span> The any-link
1692+
pseudo-class: :any-link</h3>
1693+
1694+
<p>The <code>:any-link</code> pseudo-class represents an element that acts
1695+
as the source anchor of a hyperlink.
1696+
1697+
<h3 id=link><span class=secno>7.2. </span> The link history pseudo-classes:
16891698
:link and :visited</h3>
16901699

16911700
<p>User agents commonly display unvisited links differently from previously
@@ -1722,7 +1731,7 @@ <h3 id=link><span class=secno>7.1. </span> The link history pseudo-classes:
17221731
measures to preserve the user's privacy while rendering visited and
17231732
unvisited links differently.
17241733

1725-
<h3 id=here-pseudo><span class=secno>7.2. </span> The link location
1734+
<h3 id=here-pseudo><span class=secno>7.3. </span> The link location
17261735
pseudo-class :local-link</h3>
17271736

17281737
<p>The <code>:local-link</code> pseudo-class allows authors to style links
@@ -1814,7 +1823,7 @@ <h3 id=here-pseudo><span class=secno>7.2. </span> The link location
18141823
<pre>:not(:local-link(0)) { text-decoration-style: dashed; }</pre>
18151824
</div>
18161825

1817-
<h3 id=target-pseudo><span class=secno>7.3. </span> The target pseudo-class
1826+
<h3 id=target-pseudo><span class=secno>7.4. </span> The target pseudo-class
18181827
:target</h3>
18191828

18201829
<p>Some URIs refer to a location within a resource. This kind of URI ends
@@ -1850,7 +1859,7 @@ <h3 id=target-pseudo><span class=secno>7.3. </span> The target pseudo-class
18501859
*:target::before { content : url(target.png) }</pre>
18511860
</div>
18521861

1853-
<h3 id=scope-pseudo><span class=secno>7.4. </span> The scope pseudo-class
1862+
<h3 id=scope-pseudo><span class=secno>7.5. </span> The scope pseudo-class
18541863
:scope</h3>
18551864

18561865
<p>The <code>:scope</code> pseudo-class represents any element that is in

selectors4/Overview.src.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,12 @@ <h3 id=id-selectors>
12081208
<h2 id=location>
12091209
Location Pseudo-classes</h2>
12101210

1211+
<h3 id="any-link-pseudo">
1212+
The any-link pseudo-class: :any-link</h3>
1213+
1214+
<p>The <code>:any-link</code> pseudo-class represents an element
1215+
that acts as the source anchor of a hyperlink.
1216+
12111217
<h3 id=link>
12121218
The link history pseudo-classes: :link and :visited</h3>
12131219

0 commit comments

Comments
 (0)