@@ -8,7 +8,7 @@ not being in a live, browser environment. Pseudo classes that cannot be implemen
8
8
non-applicable either are under consideration, have not yet been evaluated, or are too new and viewed as a risk to
9
9
implement as they might not stick around.
10
10
11
- ## ` :any-link ` < span class = " html5 badge " ></ span >< span class = " lab badge " ></ span > {:#: any-link }
11
+ ## ` :any-link ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon}:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: any-link }
12
12
13
13
Selects every ` #!html <a> ` , ` #!html <area> ` , or ` #!html <link> ` element that has an ` href ` attribute, independent of
14
14
whether it has been visited.
@@ -37,7 +37,7 @@ whether it has been visited.
37
37
!!! tip "Additional Reading"
38
38
https://developer.mozilla.org/en-US/docs/Web/CSS/:any-link
39
39
40
- ## ` :checked ` < span class = " html5 badge " ></ span > {:#: checked }
40
+ ## ` :checked ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon} {:#: checked }
41
41
42
42
Selects any ` #!html <input type="radio"/> ` , ` #!html <input type="checkbox"/> ` , or ` #!html <option> ` element (in a
43
43
` #!html <select> ` element) that is checked or toggled to an on state.
@@ -80,7 +80,7 @@ Selects any `#!html <input type="radio"/>`, `#!html <input type="checkbox"/>`, o
80
80
!!! tip "Additional Reading"
81
81
https://developer.mozilla.org/en-US/docs/Web/CSS/:checked
82
82
83
- ## ` :contains() ` < span class = " star badge " ></ span > {:#: contains }
83
+ ## ` :contains() ` :material-star:{: title="Custom" data-md-color-primary="green" .icon} {:#: contains }
84
84
85
85
Selects elements that contain the provided text. Text can be found in either itself, or its descendants.
86
86
@@ -116,7 +116,7 @@ in the comma separated list to be considered matching.
116
116
[ <div >Here is <span >some text</span >.</div >]
117
117
```
118
118
119
- ## ` :default ` < span class = " html5 badge " ></ span >< span class = " lab badge " ></ span > {:#: default }
119
+ ## ` :default ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon}:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: default }
120
120
121
121
Selects any form element that is the default among a group of related elements, including: ` #!html <button> ` ,
122
122
` #!html <input type="checkbox"> ` , ` #!html <input type="radio"> ` , ` #!html <option> ` elements.
@@ -168,7 +168,7 @@ Selects any form element that is the default among a group of related elements,
168
168
!!! tip "Additional Reading"
169
169
https://developer.mozilla.org/en-US/docs/Web/CSS/:default
170
170
171
- ## ` :defined ` < span class = " html5 badge " > </span ></ span >< span class = " lab badge " ></ span > {:#: defined }
171
+ ## ` :defined ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon} </span >:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: defined }
172
172
173
173
In a browser environment, this represents * defined* elements (names without hyphens) and custom elements (names with
174
174
hyphens) that have been properly added to the custom element registry. Since elements cannot be added to a custom
@@ -200,7 +200,7 @@ specific selector, so it doesn't apply to XML.
200
200
!!! tip "Additional Reading"
201
201
https://developer.mozilla.org/en-US/docs/Web/CSS/:defined
202
202
203
- ## ` :dir() ` < span class = " html5 badge " ></ span >< span class = " lab badge " ></ span > {:#: dir }
203
+ ## ` :dir() ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon}:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: dir }
204
204
205
205
Selects elements based on text directionality. Accepts either ` ltr ` or ` rtl ` for "left to right" and "right to left"
206
206
respectively.
@@ -232,7 +232,7 @@ respectively.
232
232
!!! tip "Additional Reading"
233
233
https://developer.mozilla.org/en-US/docs/Web/CSS/:dir
234
234
235
- ## ` :disabled ` < span class = " html5 badge " ></ span > {:#: disabled }
235
+ ## ` :disabled ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon} {:#: disabled }
236
236
237
237
Selects any element that is disabled.
238
238
@@ -277,7 +277,7 @@ Selects any element that is disabled.
277
277
!!! tip "Additional Reading"
278
278
https://developer.mozilla.org/en-US/docs/Web/CSS/:disabled
279
279
280
- ## ` :empty ` < span class = " lab badge " ></ span > {:#: empty }
280
+ ## ` :empty ` :material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: empty }
281
281
282
282
Selects elements that have no children and no text (whitespace is ignored).
283
283
@@ -307,7 +307,7 @@ Selects elements that have no children and no text (whitespace is ignored).
307
307
!!! tip "Additional Reading"
308
308
https://developer.mozilla.org/en-US/docs/Web/CSS/:empty
309
309
310
- ## ` :enabled ` < span class = " html5 badge " ></ span > {:#: enabled }
310
+ ## ` :enabled ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon} {:#: enabled }
311
311
312
312
Selects any element that is enabled.
313
313
@@ -424,7 +424,7 @@ Selects the first child of a given type in a group of sibling elements.
424
424
!!! tip "Additional Reading"
425
425
https://developer.mozilla.org/en-US/docs/Web/CSS/:first-of-type
426
426
427
- ## ` :has() ` < span class = " lab badge " ></ span > {:#has}
427
+ ## ` :has() ` :material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#has}
428
428
429
429
Selects an element if any of the relative selectors passed as parameters (which are relative to the ` :scope ` of the
430
430
given element), match at least one element.
@@ -461,7 +461,7 @@ are planned for level 5 CSS selectors. Soup Sieve supports [complex](#complex-se
461
461
!!! tip "Additional Reading"
462
462
https://developer.mozilla.org/en-US/docs/Web/CSS/:has
463
463
464
- ## ` :in-range ` < span class = " html5 badge " ></ span >< span class = " lab badge " ></ span > {:#: in-range }
464
+ ## ` :in-range ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon}:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: in-range }
465
465
466
466
Selects all ` #!html <input> ` elements whose values are in range according to their ` type ` , ` min ` , and ` max ` attributes.
467
467
@@ -490,7 +490,7 @@ Selects all `#!html <input>` elements whose values are in range according to the
490
490
!!! tip "Additional Reading"
491
491
https://developer.mozilla.org/en-US/docs/Web/CSS/:in-range
492
492
493
- ## ` :indeterminate ` < span class = " html5 badge " ></ span >< span class = " lab badge " ></ span > {:#: indeterminate }
493
+ ## ` :indeterminate ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon}:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: indeterminate }
494
494
495
495
Selects all form elements whose are in an indeterminate state.
496
496
@@ -550,7 +550,7 @@ selected.
550
550
!!! tip "Additional Reading"
551
551
https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate
552
552
553
- ## ` :is() ` < span class = " lab badge " ></ span > {:#: is }
553
+ ## ` :is() ` :material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: is }
554
554
555
555
Selects an element, but only if it matches at least one selector in the selector list.
556
556
@@ -629,7 +629,7 @@ Level 3 CSS
629
629
[<p id="1"></p>, <p id="2"></p>, <p id="3"></p>, <p id="4"></p>, <p id="5"></p>, <p id="6" lang="de-DE"></p>]
630
630
```
631
631
632
- Level 4 CSS< span class = " lab badge " ></ span >
632
+ Level 4 CSS:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon}
633
633
:
634
634
The level 4 CSS specifications adds the ability to define multiple language tags using a comma separated list. The
635
635
specifications also allow for BCP 47 language ranges as described in [ RFC4647] ( https://tools.ietf.org/html/rfc4647 )
@@ -750,7 +750,7 @@ Selects the last child of a given type in a group of sibling elements.
750
750
!!! tip "Additional Reading"
751
751
https://developer.mozilla.org/en-US/docs/Web/CSS/:last-of-type
752
752
753
- ## ` :link ` < span class = " html5 badge " ></ span > {:#: link }
753
+ ## ` :link ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon} {:#: link }
754
754
755
755
Selects a link (every ` #!html <a> ` , ` #!html <link> ` , and ` #!html <area> ` element with an ` href ` attribute) that has not
756
756
yet been visited.
@@ -811,7 +811,7 @@ Level 3 CSS
811
811
[<div>Here is some text.</div>]
812
812
```
813
813
814
- Level 4+ CSS< span class = " lab badge " ></ span >
814
+ Level 4+ CSS:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon}
815
815
:
816
816
Selects all elements that do not match any of the selectors in the selector list. While the level 4 specifications
817
817
state that [ compound] ( #compound-selector ) selectors are supported, some browsers (Safari) support complex selectors
@@ -890,7 +890,7 @@ Level 3 CSS
890
890
[<p id="0"></p>, <p id="1"></p>, <p id="2"></p>]
891
891
```
892
892
893
- Level 4+ CSS< span class = " lab badge " ></ span >
893
+ Level 4+ CSS:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon}
894
894
:
895
895
Level 4 CSS adds the additional pattern in the form ` an+b of S ` where ` S ` represents a selector list. ` an+b ` can
896
896
also be substituted with ` even ` or ` odd ` .
@@ -984,7 +984,7 @@ Level 3 CSS
984
984
[<p id="3"></p>, <p id="4"></p>, <p id="5"></p>]
985
985
```
986
986
987
- Level 4+ CSS< span class = " lab badge " ></ span >
987
+ Level 4+ CSS:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon}
988
988
:
989
989
Level 4 CSS adds the additional pattern in the form ` an+b of S ` where ` S ` represents a selector list. ` an+b ` can
990
990
also be substituted with ` even ` or ` odd ` .
@@ -1215,7 +1215,7 @@ Selects element without any siblings that matches a given type.
1215
1215
!!! tip "Additional Reading"
1216
1216
https://developer.mozilla.org/en-US/docs/Web/CSS/:only-of-type
1217
1217
1218
- ## ` :optional ` < span class = " html5 badge " ></ span >< span class = " lab badge " ></ span > {:#: optional }
1218
+ ## ` :optional ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon}:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: optional }
1219
1219
1220
1220
Selects any ` #!html <input> ` , ` #!html <select> ` , or ` #!html <textarea> ` element that does not have the ` required `
1221
1221
attribute set on it.
@@ -1252,7 +1252,7 @@ attribute set on it.
1252
1252
!!! tip "Additional Reading"
1253
1253
https://developer.mozilla.org/en-US/docs/Web/CSS/:optional
1254
1254
1255
- ## ` :out-of-range ` < span class = " html5 badge " ></ span >< span class = " lab badge " ></ span > {:#: out-of-range }
1255
+ ## ` :out-of-range ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon}:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: out-of-range }
1256
1256
1257
1257
Selects all ` #!html <input> ` elements whose values are out of range according to their ` type ` , ` min ` , and ` max `
1258
1258
attributes.
@@ -1282,7 +1282,7 @@ attributes.
1282
1282
!!! tip "Additional Reading"
1283
1283
https://developer.mozilla.org/en-US/docs/Web/CSS/:out-of-range
1284
1284
1285
- ## ` :placeholder-shown ` < span class = " html5 badge " ></ span >< span class = " lab badge " ></ span > {:#: placeholder-shown }
1285
+ ## ` :placeholder-shown ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon}:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: placeholder-shown }
1286
1286
1287
1287
Selects any ` #!html <input> ` or ` #!html <textarea> ` element that is currently displaying placeholder text via the
1288
1288
` placeholder ` attribute.
@@ -1323,7 +1323,7 @@ Selects any `#!html <input>` or `#!html <textarea>` element that is currently di
1323
1323
!!! tip "Additional Reading"
1324
1324
https://developer.mozilla.org/en-US/docs/Web/CSS/:placeholder-shown
1325
1325
1326
- ## ` :read-only ` < span class = " html5 badge " ></ span >< span class = " lab badge " ></ span > {:#: read-only }
1326
+ ## ` :read-only ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon}:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: read-only }
1327
1327
1328
1328
Selects elements (such as ` #!html <input> ` or ` #!html <textarea> ` ) that are * not* editable by the user. This does not
1329
1329
just apply to form elements with ` readonly ` set, but it applies to ** any** element that cannot be edited by the user.
@@ -1361,7 +1361,7 @@ just apply to form elements with `readonly` set, but it applies to **any** eleme
1361
1361
!!! tip "Additional Reading"
1362
1362
https://developer.mozilla.org/en-US/docs/Web/CSS/:read-only
1363
1363
1364
- ## ` :read-write ` < span class = " html5 badge " ></ span >< span class = " lab badge " ></ span > {:#: read-write }
1364
+ ## ` :read-write ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon}:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: read-write }
1365
1365
1366
1366
Selects elements (such as ` #!html <input> ` or ` #!html <textarea> ` ) that are editable by the user. This does not just
1367
1367
apply to form elements as it applies to ** any** element that can be edited by the user, such as a ` #!html <p> ` element
@@ -1400,7 +1400,7 @@ with `contenteditable` set on it.
1400
1400
!!! tip "Additional Reading"
1401
1401
https://developer.mozilla.org/en-US/docs/Web/CSS/:read-write
1402
1402
1403
- ## ` :required ` < span class = " html5 badge " ></ span >< span class = " lab badge " ></ span > {:#: required }
1403
+ ## ` :required ` :material-language-html5:{: title="HTML" data-md-color-primary="orange" .icon}:material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: required }
1404
1404
1405
1405
Selects any ` #!html <input> ` , ` #!html <select> ` , or ` #!html <textarea> ` element that has the ` required ` attribute set on
1406
1406
it.
@@ -1474,7 +1474,7 @@ Selects the root element of a document tree.
1474
1474
!!! tip "Additional Reading"
1475
1475
https://developer.mozilla.org/en-US/docs/Web/CSS/:root
1476
1476
1477
- ## ` :scope ` < span class = " lab badge " ></ span > {:#: scope }
1477
+ ## ` :scope ` :material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: scope }
1478
1478
1479
1479
` :scope ` represents the the element a ` match ` , ` select ` , or ` filter ` is being called on. If we were, for instance,
1480
1480
using ` :scope ` on a div (` #!py3 sv.select(':scope > p', soup.div) ` ) ` :scope ` would represent ** that** div element, and
@@ -1506,7 +1506,7 @@ no others. If called on the Beautiful Soup object which represents the entire do
1506
1506
!!! tip "Additional Reading"
1507
1507
https://developer.mozilla.org/en-US/docs/Web/CSS/:scope
1508
1508
1509
- ## ` :where() ` < span class = " lab badge " ></ span > {:#: where }
1509
+ ## ` :where() ` :material-flask:{: title="Experimental" data-md-color-primary="purple" .icon} {:#: where }
1510
1510
1511
1511
Selects an element, but only if it matches at least one selector in the selector list. In browsers, this also has zero
1512
1512
specificity, but this only has relevance in a browser environment where you have multiple CSS styles, and specificity is
0 commit comments