Skip to content

Commit 8c710fe

Browse files
committed
[selectors-5][editorial] Add formal definition and production rule of :local-link()
1 parent 534a0b6 commit 8c710fe

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

selectors-5/Overview.bs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,14 @@ The Local Link Pseudo-class '':local-link''</h3>
6666
</div>
6767

6868
As a functional pseudo-class,
69-
'':local-link()'' can also accept a non-negative integer as its sole argument,
70-
which, if the document's URL belongs to a hierarchical scheme,
71-
indicates the number of path levels to match:
69+
<dfn id='local-link-functional-pseudo' lt=':local-link()'>:local-link()</dfn> can also accept a non-negative integer as its sole argument.
70+
71+
<pre class=prod>
72+
<l>'':local-link()''</l> = :local-link( <<level>># )
73+
</pre>
74+
75+
If the document's URL belongs to a hierarchical scheme,
76+
<<level>> indicates the number of path levels to match:
7277

7378
<ul>
7479
<li>'':local-link(0)'' represents a link element whose target is in the same origin as the document's URL

0 commit comments

Comments
 (0)