@webref/css 6.2.0 → 6.3.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/CSS.json CHANGED
@@ -285,7 +285,7 @@
285
285
  ],
286
286
  "values": [
287
287
  {
288
- "name": "identifiers",
288
+ "name": "<identifier>",
289
289
  "type": "type"
290
290
  },
291
291
  {
@@ -0,0 +1,47 @@
1
+ {
2
+ "spec": {
3
+ "title": "CSS Color Module Level 6",
4
+ "url": "https://drafts.csswg.org/css-color-6/"
5
+ },
6
+ "properties": [],
7
+ "atrules": [],
8
+ "selectors": [],
9
+ "values": [
10
+ {
11
+ "name": "contrast-color()",
12
+ "prose": "The contrast-color() functional notation identifies a sufficiently contrasting color against a specified background or foreground color without requiring manual computation.",
13
+ "type": "function",
14
+ "value": "contrast-color( [ [ <color> && [ tbd-fg | tbd-bg ] && <target-contrast>? ] | [ <color> && [ tbd-fg | tbd-bg ] && <target-contrast>, <color># ] ] )",
15
+ "values": [
16
+ {
17
+ "name": "text",
18
+ "prose": "The tbd-fg and tbd-bg keywords indicate the role of the base color in calculating the contrast: as text against a list of candidate background colors (text) or as a background against a list of candidate text colors. (The effective contrast of a pair of colors depends on their usage.)",
19
+ "type": "value",
20
+ "value": "text"
21
+ },
22
+ {
23
+ "name": "wcag2",
24
+ "prose": "The wcag2 keyword and wcag2() functional notations indicate use of the [WCAG21] luminance contrast algorithm. Their syntax is:",
25
+ "type": "value",
26
+ "value": "wcag2"
27
+ },
28
+ {
29
+ "name": "wcag2()",
30
+ "prose": "The wcag2 keyword and wcag2() functional notations indicate use of the [WCAG21] luminance contrast algorithm. Their syntax is:",
31
+ "type": "function"
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "name": "<target-contrast>",
37
+ "prose": "The <target-contrast> argument specifies the contrast algorithm(s) to use. If no color candidates have been provided, <target-contrast> may be omitted, in which case a UA-chosen algorithm is used.",
38
+ "type": "type",
39
+ "value": "<wcag2>"
40
+ },
41
+ {
42
+ "name": "<wcag2>",
43
+ "type": "type",
44
+ "value": "wcag | wcag2([<number> | [ aa | aaa ] && large? ])"
45
+ }
46
+ ]
47
+ }
package/css-display.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "spec": {
3
- "title": "CSS Display Module Level 3",
4
- "url": "https://drafts.csswg.org/css-display-3/"
3
+ "title": "CSS Display Module Level 4",
4
+ "url": "https://drafts.csswg.org/css-display-4/"
5
5
  },
6
6
  "properties": [
7
7
  {
@@ -28,9 +28,37 @@
28
28
  },
29
29
  {
30
30
  "name": "order",
31
+ "value": "[ <'layout-order'> <'reading-order'>? ] | [ reading && <'reading-order'> ] | [ layout && <'layout-order'> ] | [ reading-and-layout && <integer> ]",
32
+ "initial": "see individual properties",
33
+ "appliesTo": "flex items and grid items",
34
+ "inherited": "no",
35
+ "percentages": "see individual properties",
36
+ "computedValue": "see individual properties",
37
+ "animationType": "see individual properties",
38
+ "canonicalOrder": "per grammar",
39
+ "values": [
40
+ {
41
+ "name": "reading-and-layout",
42
+ "prose": "The order property sets both layout-order and reading-order in a single declaration. Unless reading-and-layout is specified—in which case both <'reading-order'> and <'layout-order'> are set to the specified <integer> value—the omitted longhand is set to zero.",
43
+ "type": "value",
44
+ "value": "reading-and-layout"
45
+ },
46
+ {
47
+ "name": "<integer>",
48
+ "prose": "Specifically, the layout-order property controls the order in which flex items or grid items appear within their container by assigning them to the ordinal groups, as specified by its <integer> value.",
49
+ "type": "value",
50
+ "value": "<integer>"
51
+ }
52
+ ],
53
+ "styleDeclaration": [
54
+ "order"
55
+ ]
56
+ },
57
+ {
58
+ "name": "reading-order",
31
59
  "value": "<integer>",
32
60
  "initial": "0",
33
- "appliesTo": "flex items and grid items",
61
+ "appliesTo": "all elements",
34
62
  "inherited": "no",
35
63
  "percentages": "n/a",
36
64
  "computedValue": "specified integer",
@@ -39,13 +67,29 @@
39
67
  "values": [
40
68
  {
41
69
  "name": "<integer>",
42
- "prose": "Specifically, the order property controls the order in which flex items or grid items appear within their container, by assigning them to ordinal groups. It takes a single <integer> value, which specifies which ordinal group the item belongs to.",
70
+ "prose": "The reading-order property controls the order in which elements are rendered to speech or are navigated to when using (linear) sequention navigation methods. It takes a single <integer> value, which specifies which ordinal group the item belongs to. Sibling elements are ordered starting from the lowest numbered ordinal group and going up; elements with the same ordinal group are keep the order they appear in the source document.",
43
71
  "type": "value",
44
72
  "value": "<integer>"
45
73
  }
46
74
  ],
47
75
  "styleDeclaration": [
48
- "order"
76
+ "reading-order",
77
+ "readingOrder"
78
+ ]
79
+ },
80
+ {
81
+ "name": "layout-order",
82
+ "value": "<integer>",
83
+ "initial": "0",
84
+ "appliesTo": "flex items and grid items",
85
+ "inherited": "no",
86
+ "percentages": "n/a",
87
+ "computedValue": "specified integer",
88
+ "canonicalOrder": "per grammar",
89
+ "animationType": "by computed value type",
90
+ "styleDeclaration": [
91
+ "layout-order",
92
+ "layoutOrder"
49
93
  ]
50
94
  },
51
95
  {
package/css-position.json CHANGED
@@ -13,7 +13,6 @@
13
13
  "percentages": "N/A",
14
14
  "computedValue": "specified keyword",
15
15
  "canonicalOrder": "per grammar",
16
- "animatable": "no",
17
16
  "animationType": "discrete",
18
17
  "values": [
19
18
  {
package/html.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "spec": {
3
+ "title": "HTML Standard",
4
+ "url": "https://html.spec.whatwg.org/multipage/"
5
+ },
6
+ "properties": [],
7
+ "atrules": [],
8
+ "selectors": [],
9
+ "values": [
10
+ {
11
+ "name": "<source-size-list>",
12
+ "type": "type",
13
+ "value": "[ <source-size># , ]? <source-size-value>"
14
+ },
15
+ {
16
+ "name": "<source-size>",
17
+ "type": "type",
18
+ "value": "<media-condition> <source-size-value>"
19
+ },
20
+ {
21
+ "name": "<source-size-value>",
22
+ "type": "type",
23
+ "value": "<length>"
24
+ }
25
+ ]
26
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/css",
3
3
  "description": "CSS definitions of the web platform",
4
- "version": "6.2.0",
4
+ "version": "6.3.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -12,6 +12,6 @@
12
12
  "license": "MIT",
13
13
  "main": "index.js",
14
14
  "peerDependencies": {
15
- "css-tree": "^2.3.0"
15
+ "css-tree": "^2.3.1"
16
16
  }
17
17
  }