@@ -1122,7 +1122,7 @@ The Matches-Any Pseudo-class: '':is()''</h3>
11221122 to the equivalent selector written without '':is()''
11231123 For example, if we have
11241124 '':is(ul, ol, .list) > [hidden]'' and ''ul > [hidden], ol > [hidden], .list > [hidden]''
1125- a ''[hidden]] '' child of an <{ol}> matches the first selector
1125+ a ''[hidden]'' child of an <{ol}> matches the first selector
11261126 with a specificity of (0,2,0)
11271127 whereas it matches the second selector
11281128 with a specificity of (0,1,1).
@@ -3269,14 +3269,16 @@ Calculating a selector's specificity</h2>
32693269
32703270 <ul>
32713271 <li>
3272- The specificity of a '':is'' , '':not()'' , or '':has()'' pseudo-class
3272+ The specificity of an '':is() '' , '':not()'' , or '':has()'' pseudo-class
32733273 is replaced by the specificity of
3274- the most specific complex selector in its selector list argument.
3274+ the most specific <a>complex selector</a>
3275+ in its <a>selector list</a> argument.
32753276 <li>
32763277 Analogously, the specificity of an '':nth-child()'' or '':nth-last-child()'' selector
32773278 is the specificity of the pseudo class itself (counting as one pseudo-class selector)
32783279 plus the specificity of
3279- the most specific complex selector in its selector list argument (if any).
3280+ the most specific <a>complex selector</a>
3281+ in its <a>selector list</a> argument (if any).
32803282 <li>
32813283 The specificity of a '':where()'' pseudo-class is replaced by zero.
32823284 </ul>
@@ -3287,24 +3289,25 @@ Calculating a selector's specificity</h2>
32873289 <li>
32883290 '':is(em, #foo)'' has
32893291 a specificity of (1,0,0)--
3290- like an ID selector--
3292+ like an ID selector ( ''#foo'' ) --
32913293 when matched against any of
3292- <code> <em></code> , <code> <p id=foo></code> , or <code> <em id=foo></code> .
3294+ <code> <em></code> , <code> <p id=foo></code> , or <code> <em id=foo></code> .
32933295 <li>
3294- ''div :where(em, #foo#bar#baz)'' has
3295- a specificity of (0,0,1 ):
3296- only the ''div '' outside the '':where()''
3296+ ''.qux :where(em, #foo#bar#baz)'' has
3297+ a specificity of (0,1,0 ):
3298+ only the ''.qux '' outside the '':where()''
32973299 contributes to selector specificity.
32983300 <li>
32993301 '':nth-child(even of li, .item)'' has
33003302 a specificity of (0,2,0)--
3301- like a class selector plus a pseudo-class--
3303+ like a class selector ( ''.item'' ) plus a pseudo-class--
33023304 when matched against any of
3303- <code> <li></code> , <code> <ul class=item></code> , or <code> <li class=item id=foo></code> .
3305+ <code> <li></code> , <code> <ul class=item></code> , or <code> <li class=item id=foo></code> .
33043306 <li>
3305- '':not(em, #foo)'' has
3306- a specificity of (1,0,0)--like an ID selector--
3307- whenever it matches any element.
3307+ '':not(em, strong#foo)'' has
3308+ a specificity of (1,0,1)--
3309+ like a tag selector (''strong'' ) combined with an ID selector (''#foo'' )--
3310+ when matched against any element.
33083311 </ul>
33093312 </div>
33103313
0 commit comments