Skip to content

Commit 6f2492e

Browse files
committed
count pseudo-elements in specificity calculation to match CSS2.1 (makes no difference anyway as long as we don't allow multiple pseudo elements)
1 parent bed002c commit 6f2492e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

selectors3/Overview.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2415,8 +2415,8 @@ <h2><a name=specificity>9. Calculating a selector's specificity</a></h2>
24152415
<ul>
24162416
<li>count the number of ID selectors in the selector (= a)</li>
24172417
<li>count the number of class selectors, attributes selectors, and pseudo-classes in the selector (= b)</li>
2418-
<li>count the number of element names in the selector (= c)</li>
2419-
<li>ignore pseudo-elements</li>
2418+
<li>count the number of type selectors and pseudo-elements in the selector (= c)</li>
2419+
<li>ignore the universal selector</li>
24202420
</ul>
24212421

24222422
<p>Selectors inside <a href="#negation">the negation pseudo-class</a>

0 commit comments

Comments
 (0)