Skip to content

Commit 436a409

Browse files
committed
Give a definition for specificity of :not()/:matches() with multiple args.
1 parent 3efc759 commit 436a409

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

selectors4/Overview.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 23 March 2011</h2>
3737

3838
<dt><a name=editors-list></a>Editors:
3939

40+
<dd class=vcard><a class="url fn" href="http://www.tantek.com/"
41+
lang=tr>Tantek &Ccedil;elik</a> (Invited Expert)
42+
4043
<dd class=vcard><a class="url fn"
4144
href="http://fantasai.inkedblade.net/contact">Elika J. Etemad</a>
4245
(Invited Expert)
@@ -2408,9 +2411,10 @@ <h2 id=specificity><span class=secno>9. </span> Calculating a selector's
24082411
<li>ignore the universal selector
24092412
</ul>
24102413

2411-
<p>Selectors inside <a href="#negation">the negation pseudo-class</a> are
2412-
counted like any other, but the negation itself does not count as a
2413-
pseudo-class.
2414+
<p>The specificity of a <a href="#negation">negation</a> or <a
2415+
href="#matches">matches</a> pseudo-class is the specificity of its most
2416+
specific argument. The pseudo-class itself does not count as pseudo-class.
2417+
24142418

24152419
<p>Concatenating the three numbers a-b-c (in a number system with a large
24162420
base) gives the specificity.

selectors4/Overview.src.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ <h2 class="no-num no-toc">[LONGSTATUS] [DATE]</h2>
3535

3636
<dt><a name=editors-list></a>Editors:
3737

38+
<dd class="vcard"><a lang="tr" class="url fn" href="http://www.tantek.com/">Tantek &Ccedil;elik</a> (Invited Expert)
3839
<dd class="vcard"><a class="url fn" href="http://fantasai.inkedblade.net/contact">Elika J. Etemad</a> (Invited Expert)
3940
<dd class="vcard"><span class="fn">Daniel Glazman</span> (Disruptive Innovations SARL)</dd>
4041

@@ -1925,9 +1926,10 @@ <h2 id=specificity>
19251926
<li>ignore the universal selector</li>
19261927
</ul>
19271928

1928-
<p>Selectors inside <a href="#negation">the negation pseudo-class</a>
1929-
are counted like any other, but the negation itself does not count as
1930-
a pseudo-class.</p>
1929+
<p>The specificity of a <a href="#negation">negation</a> or
1930+
<a href="#matches">matches</a> pseudo-class is the specificity
1931+
of its most specific argument. The pseudo-class itself does not
1932+
count as pseudo-class.
19311933

19321934
<p>Concatenating the three numbers a-b-c (in a number system with a
19331935
large base) gives the specificity.</p>

0 commit comments

Comments
 (0)