|
9 | 9 | { |
10 | 10 | "name": ":is()", |
11 | 11 | "prose": "The matches-any pseudo-class, :is(), is a functional pseudo-class taking a <forgiving-selector-list> as its sole argument.", |
12 | | - "href": "https://www.w3.org/TR/selectors-4/#matches-pseudo" |
| 12 | + "href": "https://www.w3.org/TR/selectors-4/#matches-pseudo", |
| 13 | + "value": ":is()" |
13 | 14 | }, |
14 | 15 | { |
15 | 16 | "name": ":matches()", |
16 | 17 | "prose": "As previous drafts of this specification used the name :matches() for this pseudo-class, UAs may additionally implement this obsolete name as a legacy selector alias for :is() if needed for backwards-compatibility.", |
17 | | - "href": "https://www.w3.org/TR/selectors-4/#selectordef-matches" |
| 18 | + "href": "https://www.w3.org/TR/selectors-4/#selectordef-matches", |
| 19 | + "value": ":matches()" |
18 | 20 | }, |
19 | 21 | { |
20 | 22 | "name": ":not()", |
21 | 23 | "prose": "The negation pseudo-class, :not(), is a functional pseudo-class taking a selector list as an argument. It represents an element that is not represented by its argument.", |
22 | | - "href": "https://www.w3.org/TR/selectors-4/#negation-pseudo" |
| 24 | + "href": "https://www.w3.org/TR/selectors-4/#negation-pseudo", |
| 25 | + "value": ":not()" |
23 | 26 | }, |
24 | 27 | { |
25 | 28 | "name": ":where()", |
26 | 29 | "prose": "The Specificity-adjustment pseudo-class, :where(), is a functional pseudo-class with the same syntax and functionality as :is(). Unlike :is(), neither the :where() pseudo-class, nor any of its arguments, contribute to the specificity of the selector—its specificity is always zero.", |
27 | | - "href": "https://www.w3.org/TR/selectors-4/#where-pseudo" |
| 30 | + "href": "https://www.w3.org/TR/selectors-4/#where-pseudo", |
| 31 | + "value": ":where()" |
28 | 32 | }, |
29 | 33 | { |
30 | 34 | "name": ":has()", |
31 | 35 | "prose": "The relational pseudo-class, :has(), is a functional pseudo-class taking a <forgiving-relative-selector-list> as an argument. It represents an element if any of the relative selectors would match at least one element when anchored against this element.", |
32 | | - "href": "https://www.w3.org/TR/selectors-4/#has-pseudo" |
| 36 | + "href": "https://www.w3.org/TR/selectors-4/#has-pseudo", |
| 37 | + "value": ":has()" |
33 | 38 | }, |
34 | 39 | { |
35 | 40 | "name": ":defined", |
|
40 | 45 | { |
41 | 46 | "name": ":dir()", |
42 | 47 | "prose": "The :dir() pseudo-class allows the author to write selectors that represent an element based on its directionality as determined by the document language. For example, [HTML5] defines how to determine the directionality of an element, based on a combination of the dir attribute, the surrounding text, and other factors. As another example, the its:dir and dirRule element of the Internationalization Tag Set [ITS20] are able to define the directionality of an element in [XML10].", |
43 | | - "href": "https://www.w3.org/TR/selectors-4/#dir-pseudo" |
| 48 | + "href": "https://www.w3.org/TR/selectors-4/#dir-pseudo", |
| 49 | + "value": ":dir()" |
44 | 50 | }, |
45 | 51 | { |
46 | 52 | "name": ":lang()", |
47 | 53 | "prose": "If the document language specifies how the (human) content language of an element is determined, it is possible to write selectors that represent an element based on its content language. The :lang() pseudo-class, which accepts a comma-separated list of one or more language ranges, represents an element whose content language is one of the languages listed in its argument. Each language range in :lang() must be a valid CSS <ident> or <string>. (Thus language ranges containing asterisks, for example, must be either correctly escaped or quoted as strings, e.g. :lang(\\*-Latn) or :lang(\"*-Latn\").)", |
48 | | - "href": "https://www.w3.org/TR/selectors-4/#lang-pseudo" |
| 54 | + "href": "https://www.w3.org/TR/selectors-4/#lang-pseudo", |
| 55 | + "value": ":lang()" |
49 | 56 | }, |
50 | 57 | { |
51 | 58 | "name": ":any-link", |
|
128 | 135 | { |
129 | 136 | "name": ":current()", |
130 | 137 | "prose": "Its alternate form :current(), like :is(), takes a list of compound selectors as its argument: it represents the :current element that matches the argument or, if that does not match, the innermost ancestor of the :current element that does. (If neither the :current element nor its ancestors match the argument, then the selector does not represent anything.)", |
131 | | - "href": "https://www.w3.org/TR/selectors-4/#selectordef-current" |
| 138 | + "href": "https://www.w3.org/TR/selectors-4/#selectordef-current", |
| 139 | + "value": ":current()" |
132 | 140 | }, |
133 | 141 | { |
134 | 142 | "name": ":past", |
|
394 | 402 | "name": ">", |
395 | 403 | "prose": "A child combinator describes a childhood relationship between two elements. A child combinator is made of the \"greater-than sign\" (U+003E, >) code point and separates two compound selectors.", |
396 | 404 | "href": "https://www.w3.org/TR/selectors-4/#selectordef-child", |
397 | | - "value": ">" |
| 405 | + "value": "'>'" |
398 | 406 | }, |
399 | 407 | { |
400 | 408 | "name": "+", |
401 | 409 | "prose": "The next-sibling combinator is made of the “plus sign” (U+002B, +) code point that separates two compound selectors. The elements represented by the two compound selectors share the same parent in the document tree and the element represented by the first compound selector immediately precedes the element represented by the second one. Non-element nodes (e.g. text between elements) are ignored when considering the adjacency of elements.", |
402 | 410 | "href": "https://www.w3.org/TR/selectors-4/#selectordef-adjacent", |
403 | | - "value": "+" |
| 411 | + "value": "'+'" |
404 | 412 | }, |
405 | 413 | { |
406 | 414 | "name": "~", |
407 | 415 | "prose": "The subsequent-sibling combinator is made of the \"tilde\" (U+007E, ~) code point that separates two compound selectors. The elements represented by the two compound selectors share the same parent in the document tree and the element represented by the first compound selector precedes (not necessarily immediately) the element represented by the second one.", |
408 | 416 | "href": "https://www.w3.org/TR/selectors-4/#selectordef-sibling", |
409 | | - "value": "~" |
| 417 | + "value": "'~'" |
410 | 418 | }, |
411 | 419 | { |
412 | 420 | "name": "||", |
413 | 421 | "prose": "The column combinator, which consists of two pipes (||) represents the relationship of a column element to a cell element belonging to the column it represents. Column membership is determined based on the semantics of the document language only: whether and how the elements are presented is not considered. If a cell element belongs to more than one column, it is represented by a selector indicating membership in any of those columns.", |
414 | 422 | "href": "https://www.w3.org/TR/selectors-4/#selectordef-column", |
415 | | - "value": "||" |
| 423 | + "value": "'|' '|'" |
416 | 424 | }, |
417 | 425 | { |
418 | 426 | "name": ":nth-col()", |
|
0 commit comments