@webref/css 6.1.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/selectors.json CHANGED
@@ -16,7 +16,7 @@
16
16
  },
17
17
  {
18
18
  "name": ":not()",
19
- "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."
19
+ "prose": "The negation pseudo-class, :not(), is a functional pseudo-class taking a <complex-real-selector-list> as an argument. It represents an element that is not represented by its argument."
20
20
  },
21
21
  {
22
22
  "name": ":where()",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  {
26
26
  "name": ":has()",
27
- "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."
27
+ "prose": "The relational pseudo-class, :has(), is a functional pseudo-class taking a <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."
28
28
  },
29
29
  {
30
30
  "name": ":defined",
@@ -68,23 +68,23 @@
68
68
  },
69
69
  {
70
70
  "name": ":hover",
71
- "prose": "The :hover pseudo-class applies while the user designates an element with a pointing device, but does not necessarily activate it. For example, a visual user agent could apply this pseudo-class when the cursor (mouse pointer) hovers over a box generated by the element. Interactive user agents that cannot detect hovering due to hardware limitations (e.g., a pen device that does not detect hovering) are still conforming; the selector will simply never match in such a UA."
71
+ "prose": "The :hover pseudo-class applies while the user designates an element (or pseudo-element) with a pointing device, but does not necessarily activate it. For example, a visual user agent could apply this pseudo-class when the cursor (mouse pointer) hovers over a box generated by the element. Interactive user agents that cannot detect hovering due to hardware limitations (e.g., a pen device that does not detect hovering) are still conforming; the selector will simply never match in such a UA."
72
72
  },
73
73
  {
74
74
  "name": ":active",
75
- "prose": "The :active pseudo-class applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it. On systems with more than one mouse button, :active applies only to the primary or primary activation button (typically the \"left\" mouse button), and any aliases thereof."
75
+ "prose": "The :active pseudo-class applies while an element is being “activated” by the user, as defined by the host language; for example, while a hyperlink is being triggered."
76
76
  },
77
77
  {
78
78
  "name": ":focus",
79
- "prose": "The :focus pseudo-class applies while an element has the focus (accepts keyboard or mouse events, or other forms of input)."
79
+ "prose": "The :focus pseudo-class applies while an element (or pseudo-element) has the focus (accepts keyboard or other forms of input)."
80
80
  },
81
81
  {
82
82
  "name": ":focus-visible",
83
- "prose": "While the :focus pseudo-class always matches the currently-focused element, UAs only sometimes visibly indicate focus (such as by drawing a “focus ring”), instead using a variety of heuristics to visibly indicate the focus only when it would be most helpful to the user. The :focus-visible pseudo-class matches a focused element in these situations only, allowing authors to change the appearance of the focus indicator without changing when a focus indicator appears."
83
+ "prose": "While the :focus pseudo-class always matches the currently-focused element, UAs only sometimes visibly indicate focus (such as by drawing a “focus ring”), instead using a variety of heuristics to visibly indicate the focus only when it would be most helpful to the user. The :focus-visible pseudo-class matches a focused element (or pseudo-element) in these situations only, allowing authors to change the appearance of the focus indicator without changing when a focus indicator appears."
84
84
  },
85
85
  {
86
86
  "name": ":focus-within",
87
- "prose": "The :focus-within pseudo-class applies to any element for which the :focus pseudo class applies as well as to an element whose descendant in the flat tree (including non-element nodes, such as text nodes) matches the conditions for matching :focus."
87
+ "prose": "The :focus-within pseudo-class applies to any element (or pseudo-element) for which the :focus pseudo class applies, as well as to an element (or pseudo-element) whose descendant in the flat tree (including non-element nodes, such as text nodes) matches the conditions for matching :focus."
88
88
  },
89
89
  {
90
90
  "name": ":current",
@@ -232,11 +232,11 @@
232
232
  },
233
233
  {
234
234
  "name": ":nth-child()",
235
- "prose": "The :nth-child(An+B [of S]? ) pseudo-class notation represents elements that are among An+Bth elements from the list composed of their inclusive siblings that match the selector list S, which is a <complex-selector-list> parsed as a forgiving selector list. If S is omitted, it defaults to *|*."
235
+ "value": ":nth-child(An+B [of S]? )"
236
236
  },
237
237
  {
238
238
  "name": ":nth-last-child()",
239
- "prose": "The :nth-last-child(An+B [of S]? ) pseudo-class notation represents elements that are among An+Bth elements from the list composed of their inclusive siblings that match the selector list S, counting backwards from the end. S is <complex-selector-list> parsed as a forgiving selector list. If S is omitted, it defaults to *|*."
239
+ "value": ":nth-last-child(An+B [of S]? )"
240
240
  },
241
241
  {
242
242
  "name": ":first-child",
@@ -252,11 +252,11 @@
252
252
  },
253
253
  {
254
254
  "name": ":nth-of-type()",
255
- "prose": "The :nth-of-type(An+B) pseudo-class notation represents the same elements that would be matched by :nth-child(|An+B| of S), where S is a type selector and namespace prefix matching the element in question. For example, when considering whether an HTML img element matches this pseudo-class, the S in question is html|img (assuming an appropriate html namespace is declared)."
255
+ "value": ":nth-of-type(An+B)"
256
256
  },
257
257
  {
258
258
  "name": ":nth-last-of-type()",
259
- "prose": "The :nth-last-of-type(An+B) pseudo-class notation represents the same elements that would be matched by :nth-last-child(|An+B| of S), where S is a type selector and namespace prefix matching the element in question. For example, when considering whether an HTML img element matches this pseudo-class, the S in question is html|img (assuming an appropriate html namespace is declared)."
259
+ "value": ":nth-last-of-type(An+B)"
260
260
  },
261
261
  {
262
262
  "name": ":first-of-type",
@@ -288,11 +288,11 @@
288
288
  },
289
289
  {
290
290
  "name": ":nth-col()",
291
- "prose": "The :nth-col(An+B) pseudo-class notation represents a cell element belonging to a column that has An+B-1 columns before it, for any positive integer or zero value of n. 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 any of those columns."
291
+ "value": ":nth-col(An+B)"
292
292
  },
293
293
  {
294
294
  "name": ":nth-last-col()",
295
- "prose": "The :nth-last-col(An+B) pseudo-class notation represents a cell element belonging to a column that has An+B-1 columns after it, for any positive integer or zero value of n. 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 any of those columns."
295
+ "value": ":nth-last-col(An+B)"
296
296
  }
297
297
  ],
298
298
  "values": [
@@ -306,6 +306,11 @@
306
306
  "type": "type",
307
307
  "value": "<complex-selector>#"
308
308
  },
309
+ {
310
+ "name": "<complex-real-selector-list>",
311
+ "type": "type",
312
+ "value": "<complex-real-selector>#"
313
+ },
309
314
  {
310
315
  "name": "<compound-selector-list>",
311
316
  "type": "type",
@@ -321,9 +326,24 @@
321
326
  "type": "type",
322
327
  "value": "<relative-selector>#"
323
328
  },
329
+ {
330
+ "name": "<relative-real-selector-list>",
331
+ "type": "type",
332
+ "value": "<relative-real-selector>#"
333
+ },
324
334
  {
325
335
  "name": "<complex-selector>",
326
336
  "type": "type",
337
+ "value": "<complex-selector-unit> [ <combinator>? <complex-selector-unit> ]*"
338
+ },
339
+ {
340
+ "name": "<complex-selector-unit>",
341
+ "type": "type",
342
+ "value": "[ <compound-selector>? <pseudo-compound-selector>* ]!"
343
+ },
344
+ {
345
+ "name": "<complex-real-selector>",
346
+ "type": "type",
327
347
  "value": "<compound-selector> [ <combinator>? <compound-selector> ]*"
328
348
  },
329
349
  {
@@ -331,10 +351,20 @@
331
351
  "type": "type",
332
352
  "value": "<combinator>? <complex-selector>"
333
353
  },
354
+ {
355
+ "name": "<relative-real-selector>",
356
+ "type": "type",
357
+ "value": "<combinator>? <complex-real-selector>"
358
+ },
334
359
  {
335
360
  "name": "<compound-selector>",
336
361
  "type": "type",
337
- "value": "[ <type-selector>? <subclass-selector>* [ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!"
362
+ "value": "[ <type-selector>? <subclass-selector>* ]!"
363
+ },
364
+ {
365
+ "name": "<pseudo-compound-selector>",
366
+ "type": "type",
367
+ "value": "<pseudo-element-selector> <pseudo-class-selector>*"
338
368
  },
339
369
  {
340
370
  "name": "<simple-selector>",
@@ -347,9 +377,9 @@
347
377
  "value": "'>' | '+' | '~' | [ '|' '|' ]"
348
378
  },
349
379
  {
350
- "name": "<type-selector>",
380
+ "name": "<wq-name>",
351
381
  "type": "type",
352
- "value": "<wq-name> | <ns-prefix>? '*'"
382
+ "value": "<ns-prefix>? <ident-token>"
353
383
  },
354
384
  {
355
385
  "name": "<ns-prefix>",
@@ -357,9 +387,9 @@
357
387
  "value": "[ <ident-token> | '*' ]? '|'"
358
388
  },
359
389
  {
360
- "name": "<wq-name>",
390
+ "name": "<type-selector>",
361
391
  "type": "type",
362
- "value": "<ns-prefix>? <ident-token>"
392
+ "value": "<wq-name> | <ns-prefix>? '*'"
363
393
  },
364
394
  {
365
395
  "name": "<subclass-selector>",
@@ -410,11 +440,6 @@
410
440
  "name": "<forgiving-selector-list>",
411
441
  "prose": "The <forgiving-selector-list> production instead parses each selector in the list individually, simply ignoring ones that fail to parse, so the remaining selectors can still be used.",
412
442
  "type": "type"
413
- },
414
- {
415
- "name": "<forgiving-relative-selector-list>",
416
- "prose": "<forgiving-relative-selector-list> is identical to <forgiving-selector-list>, except it parses its components as <relative-selector> rather than <complex-selector>.",
417
- "type": "type"
418
443
  }
419
444
  ]
420
445
  }