@webref/css 3.0.8 → 3.1.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-color-5.json +6 -6
- package/css-color-adjust.json +1 -1
- package/css-contain-3.json +12 -9
- package/css-images-4.json +30 -0
- package/css-scroll-snap-2.json +100 -0
- package/css-shapes-2.json +1 -1
- package/css-shapes.json +9 -0
- package/css-text-4.json +10 -7
- package/css-text-decor-4.json +3 -3
- package/css-text-decor.json +1 -1
- package/package.json +2 -2
package/css-color-5.json
CHANGED
|
@@ -44,22 +44,22 @@
|
|
|
44
44
|
"value": "<number> | <percentage>"
|
|
45
45
|
},
|
|
46
46
|
"<hsl()>": {
|
|
47
|
-
"value": "hsl(([from <color>]? [<hue> | none] [<percentage> | none] [<percentage> | none] [ / [<alpha-value> | none] ]? )"
|
|
47
|
+
"value": "hsl(([from <color>]? [<hue> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"
|
|
48
48
|
},
|
|
49
49
|
"<hwb()>": {
|
|
50
|
-
"value": "hwb([from <color>]? [<hue> | none] [<percentage> | none] [<percentage> | none] [ / [<alpha-value> | none] ]? )"
|
|
50
|
+
"value": "hwb([from <color>]? [<hue> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"
|
|
51
51
|
},
|
|
52
52
|
"<lab()>": {
|
|
53
|
-
"value": "lab([from <color>]? [<percentage> | none] [<number> | none] [<number> | none] [ / [<alpha-value> | none] ]? )"
|
|
53
|
+
"value": "lab([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"
|
|
54
54
|
},
|
|
55
55
|
"<oklab()>": {
|
|
56
|
-
"value": "oklab([from <color>]? [<percentage> | none] [<number> | none] [<number> | none] [ / [<alpha-value> | none] ]? )"
|
|
56
|
+
"value": "oklab([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"
|
|
57
57
|
},
|
|
58
58
|
"<lch()>": {
|
|
59
|
-
"value": "lch([from <color>]? [<percentage> | none] [<number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )"
|
|
59
|
+
"value": "lch([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )"
|
|
60
60
|
},
|
|
61
61
|
"<oklch()>": {
|
|
62
|
-
"value": "oklch([from <color>]? [<percentage> | none] [<number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )"
|
|
62
|
+
"value": "oklch([from <color>]? [<percentage> | <number> | none] [<percentage> | <number> | none] [<hue> | none] [ / [<alpha-value> | none] ]? )"
|
|
63
63
|
},
|
|
64
64
|
"<color()>": {
|
|
65
65
|
"value": "color( [from <color>]? <colorspace-params> [ / <alpha-value> ]? )"
|
package/css-color-adjust.json
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"color-adjust": {
|
|
53
53
|
"name": "color-adjust",
|
|
54
|
-
"value": "<print-color-adjust>",
|
|
54
|
+
"value": "<'print-color-adjust'>",
|
|
55
55
|
"initial": "see individual properties",
|
|
56
56
|
"appliesTo": "see individual properties",
|
|
57
57
|
"inherited": "see individual properties",
|
package/css-contain-3.json
CHANGED
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
},
|
|
14
14
|
"container-type": {
|
|
15
15
|
"name": "container-type",
|
|
16
|
-
"value": "none | style || [ size | inline-size
|
|
17
|
-
"initial": "
|
|
16
|
+
"value": "none | style || [ size | inline-size ]",
|
|
17
|
+
"initial": "style",
|
|
18
18
|
"appliesTo": "all elements",
|
|
19
19
|
"inherited": "no",
|
|
20
20
|
"percentages": "n/a",
|
|
21
|
-
"computedValue": "the keyword none or one or more of size, inline-size,
|
|
21
|
+
"computedValue": "the keyword none or one or more of size, inline-size, style",
|
|
22
22
|
"canonicalOrder": "per grammar",
|
|
23
23
|
"animationType": "not animatable",
|
|
24
24
|
"styleDeclaration": [
|
|
@@ -107,17 +107,20 @@
|
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
109
|
"valuespaces": {
|
|
110
|
-
"<container-query>": {
|
|
111
|
-
"value": "( <container-condition> ) | ( <size-feature> ) | style( <style-query> ) | <general-enclosed>"
|
|
112
|
-
},
|
|
113
110
|
"<container-condition>": {
|
|
114
|
-
"value": "not <
|
|
111
|
+
"value": "not <query-in-parens> | <query-in-parens> [ [ and <query-in-parens> ]* | [ or <query-in-parens> ]* ]"
|
|
112
|
+
},
|
|
113
|
+
"<query-in-parens>": {
|
|
114
|
+
"value": "( <container-condition> ) | ( <size-feature> ) | style( <style-query> ) | <general-enclosed>"
|
|
115
115
|
},
|
|
116
116
|
"<style-query>": {
|
|
117
|
-
"value": "<style-
|
|
117
|
+
"value": "<style-condition> | <style-feature>"
|
|
118
118
|
},
|
|
119
119
|
"<style-condition>": {
|
|
120
|
-
"value": "not
|
|
120
|
+
"value": "not <style-in-parens> | <style-in-parens> [ [ and <style-in-parens> ]* | [ or <style-in-parens> ]* ]"
|
|
121
|
+
},
|
|
122
|
+
"<style-in-parens>": {
|
|
123
|
+
"value": "( <style-condition> ) | ( <style-feature> ) | <general-enclosed>"
|
|
121
124
|
}
|
|
122
125
|
}
|
|
123
126
|
}
|
package/css-images-4.json
CHANGED
|
@@ -4,6 +4,21 @@
|
|
|
4
4
|
"url": "https://drafts.csswg.org/css-images-4/"
|
|
5
5
|
},
|
|
6
6
|
"properties": {
|
|
7
|
+
"object-view-box": {
|
|
8
|
+
"name": "object-view-box",
|
|
9
|
+
"value": "none | <basic-shape-rect>",
|
|
10
|
+
"initial": "none",
|
|
11
|
+
"appliesTo": "replaced elements",
|
|
12
|
+
"inherited": "no",
|
|
13
|
+
"percentages": "n/a",
|
|
14
|
+
"computedValue": "specified keyword, or computed function",
|
|
15
|
+
"canonicalOrder": "per grammar",
|
|
16
|
+
"animationType": "as if possible, otherwise discrete",
|
|
17
|
+
"styleDeclaration": [
|
|
18
|
+
"object-view-box",
|
|
19
|
+
"objectViewBox"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
7
22
|
"object-fit": {
|
|
8
23
|
"name": "object-fit",
|
|
9
24
|
"value": "fill | none | [contain | cover] || scale-down",
|
|
@@ -19,6 +34,21 @@
|
|
|
19
34
|
"objectFit"
|
|
20
35
|
]
|
|
21
36
|
},
|
|
37
|
+
"object-overflow": {
|
|
38
|
+
"name": "object-overflow",
|
|
39
|
+
"value": "clip | visible",
|
|
40
|
+
"initial": "clip",
|
|
41
|
+
"appliesTo": "replaced elements",
|
|
42
|
+
"inherited": "no",
|
|
43
|
+
"percentages": "n/a",
|
|
44
|
+
"computedValue": "as specified",
|
|
45
|
+
"canonicalOrder": "per grammar",
|
|
46
|
+
"animationType": "discrete",
|
|
47
|
+
"styleDeclaration": [
|
|
48
|
+
"object-overflow",
|
|
49
|
+
"objectOverflow"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
22
52
|
"image-resolution": {
|
|
23
53
|
"name": "image-resolution",
|
|
24
54
|
"value": "[ from-image || <resolution> ] && snap?",
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"spec": {
|
|
3
|
+
"title": "CSS Scroll Snap Module Level 2",
|
|
4
|
+
"url": "https://drafts.csswg.org/css-scroll-snap-2/"
|
|
5
|
+
},
|
|
6
|
+
"properties": {
|
|
7
|
+
"scroll-start": {
|
|
8
|
+
"name": "scroll-start",
|
|
9
|
+
"value": "[ auto | start | end | center | <length-percentage> ]{1,2}",
|
|
10
|
+
"initial": "see individual properties",
|
|
11
|
+
"appliesTo": "see individual properties",
|
|
12
|
+
"inherited": "see individual properties",
|
|
13
|
+
"percentages": "see individual properties",
|
|
14
|
+
"computedValue": "see individual properties",
|
|
15
|
+
"animationType": "see individual properties",
|
|
16
|
+
"canonicalOrder": "per grammar",
|
|
17
|
+
"styleDeclaration": [
|
|
18
|
+
"scroll-start",
|
|
19
|
+
"scrollStart"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"scroll-start-target": {
|
|
23
|
+
"name": "scroll-start-target",
|
|
24
|
+
"value": "[ none | auto ]",
|
|
25
|
+
"initial": "see individual properties",
|
|
26
|
+
"appliesTo": "see individual properties",
|
|
27
|
+
"inherited": "see individual properties",
|
|
28
|
+
"percentages": "see individual properties",
|
|
29
|
+
"computedValue": "see individual properties",
|
|
30
|
+
"animationType": "see individual properties",
|
|
31
|
+
"canonicalOrder": "per grammar",
|
|
32
|
+
"styleDeclaration": [
|
|
33
|
+
"scroll-start-target",
|
|
34
|
+
"scrollStartTarget"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"scroll-start-x": {
|
|
38
|
+
"name": "scroll-start-x",
|
|
39
|
+
"value": "auto | start | end | center | <length-percentage>",
|
|
40
|
+
"initial": "auto",
|
|
41
|
+
"appliesTo": "scroll containers",
|
|
42
|
+
"inherited": "no",
|
|
43
|
+
"percentages": "relative to the corresponding axis of the scroll container’s scrollport",
|
|
44
|
+
"computedValue": "the keyword auto or a computed <length-percentage> value",
|
|
45
|
+
"canonicalOrder": "per grammar",
|
|
46
|
+
"animationType": "by computed value type",
|
|
47
|
+
"styleDeclaration": [
|
|
48
|
+
"scroll-start-x",
|
|
49
|
+
"scrollStartX"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"scroll-start-y": {
|
|
53
|
+
"name": "scroll-start-y",
|
|
54
|
+
"value": "auto | start | end | center | <length-percentage>",
|
|
55
|
+
"initial": "auto",
|
|
56
|
+
"appliesTo": "scroll containers",
|
|
57
|
+
"inherited": "no",
|
|
58
|
+
"percentages": "relative to the corresponding axis of the scroll container’s scrollport",
|
|
59
|
+
"computedValue": "the keyword auto or a computed <length-percentage> value",
|
|
60
|
+
"canonicalOrder": "per grammar",
|
|
61
|
+
"animationType": "by computed value type",
|
|
62
|
+
"styleDeclaration": [
|
|
63
|
+
"scroll-start-y",
|
|
64
|
+
"scrollStartY"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"scroll-start-inline": {
|
|
68
|
+
"name": "scroll-start-inline",
|
|
69
|
+
"value": "auto | start | end | center | <length-percentage>",
|
|
70
|
+
"initial": "auto",
|
|
71
|
+
"appliesTo": "scroll containers",
|
|
72
|
+
"inherited": "no",
|
|
73
|
+
"percentages": "relative to the corresponding axis of the scroll container’s scrollport",
|
|
74
|
+
"computedValue": "the keyword auto or a computed <length-percentage> value",
|
|
75
|
+
"canonicalOrder": "per grammar",
|
|
76
|
+
"animationType": "by computed value type",
|
|
77
|
+
"styleDeclaration": [
|
|
78
|
+
"scroll-start-inline",
|
|
79
|
+
"scrollStartInline"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"scroll-start-block": {
|
|
83
|
+
"name": "scroll-start-block",
|
|
84
|
+
"value": "auto | start | end | center | <length-percentage>",
|
|
85
|
+
"initial": "auto",
|
|
86
|
+
"appliesTo": "scroll containers",
|
|
87
|
+
"inherited": "no",
|
|
88
|
+
"percentages": "relative to the corresponding axis of the scroll container’s scrollport",
|
|
89
|
+
"computedValue": "the keyword auto or a computed <length-percentage> value",
|
|
90
|
+
"canonicalOrder": "per grammar",
|
|
91
|
+
"animationType": "by computed value type",
|
|
92
|
+
"styleDeclaration": [
|
|
93
|
+
"scroll-start-block",
|
|
94
|
+
"scrollStartBlock"
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"descriptors": {},
|
|
99
|
+
"valuespaces": {}
|
|
100
|
+
}
|
package/css-shapes-2.json
CHANGED
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"prose": "Adds a smooth Bézier curve command to the list of path data commands, ending at the point specified by the first <coordinate-pair>. The via component specifies control points for the curve: if it’s omitted, the command specifies a smooth quadratic curve; if it’s provided, if specifies a smooth cubic curve."
|
|
73
73
|
},
|
|
74
74
|
"<arc-command>": {
|
|
75
|
-
"value": "arc <by-to> <coordinate-pair> of <length-percentage>{1,2} [ <arc-sweep> || <arc-size> || <angle> ]?",
|
|
75
|
+
"value": "arc <by-to> <coordinate-pair> of <length-percentage>{1,2} [ <arc-sweep> || <arc-size> || rotate <angle> ]?",
|
|
76
76
|
"prose": "Add an elliptical arc command to the list of path data commands, ending at the point specified by the <coordinate-pair>. The of component specifies the size of the ellipse that the arc is taken from. The first <length-percentage> provides the horizontal radius of the ellipse and the second provides the vertical radius. Like for <coordinate-pair>s, <percentage> values are resolved against the width or height of the reference box, as appropriate. If only one <length-percentage> is provided, both radiuses use the provided value. In that case, <percentage> values are resolved against the direction-agnostic size of the reference box (similar to the circle() function). The ellipse described by the specified radiuses defaults to being axis-aligned, but can be rotated by specifying an <angle>. Similar to the rotate() transform function, positive angles specify a clockwise rotation, and negative angles specify a counterclockwise rotation. If omitted, this defaults to 0deg. The ending point, radiuses, and angle, taken together, usually define two possible ellipses that intersect the starting point and ending point, and each ellipse can be traced in either direction, for a total of four possible arcs. The <arc-sweep> and <arc-size> components specify which of these arcs is desired: <arc-sweep> can be cw or ccw, indicating that the arc that is traced around the ellipse clockwise or counter-clockwise from the center, respectively, must be chosen. If omitted, this defaults to ccw. Note: In the SVG arc command, cw corresponds to the value 1 for the sweep flag, and ccw to the value 0. <arc-size> can be large or small, indicating that the larger or smaller, respectively, of the two possible arcs must be chosen. If omitted, this defaults to small. Note: In the SVG arc command, large corresponds to the value 1 for the large flag, and small to the 0. Note: If the starting and ending points are on exactly opposite sides of the ellipse, both possible arcs are the same size, but also there is only one possible ellipse. In this case, the <arc-sweep> distinguishes which of the two possible arcs will be chosen, and <arc-size> has no effect. A depiction of the two possible ellipses, and four possible arcs, that can be chosen between."
|
|
77
77
|
},
|
|
78
78
|
"<arc-sweep>": {
|
package/css-shapes.json
CHANGED
|
@@ -52,12 +52,21 @@
|
|
|
52
52
|
},
|
|
53
53
|
"descriptors": {},
|
|
54
54
|
"valuespaces": {
|
|
55
|
+
"<basic-shape-rect>": {
|
|
56
|
+
"value": "<inset()> | <rect()> | <xywh()>"
|
|
57
|
+
},
|
|
55
58
|
"<shape-box>": {
|
|
56
59
|
"value": "<box> | margin-box"
|
|
57
60
|
},
|
|
58
61
|
"<inset()>": {
|
|
59
62
|
"value": "inset( <length-percentage>{1,4} [ round <'border-radius'> ]? )"
|
|
60
63
|
},
|
|
64
|
+
"<xywh()>": {
|
|
65
|
+
"value": "xywh( <length-percentage>{2} <length-percentage [0,∞]>{2} [ round <'border-radius'> ]? )"
|
|
66
|
+
},
|
|
67
|
+
"<rect()>": {
|
|
68
|
+
"value": "rect( [ <length-percentage> | auto ]{4} [ round <'border-radius'> ]? )"
|
|
69
|
+
},
|
|
61
70
|
"<circle()>": {
|
|
62
71
|
"value": "circle( <shape-radius>? [ at <position> ]? )"
|
|
63
72
|
},
|
package/css-text-4.json
CHANGED
|
@@ -395,12 +395,12 @@
|
|
|
395
395
|
},
|
|
396
396
|
"word-spacing": {
|
|
397
397
|
"name": "word-spacing",
|
|
398
|
-
"value": "normal | <length>",
|
|
398
|
+
"value": "normal | <length-percentage>",
|
|
399
399
|
"initial": "normal",
|
|
400
400
|
"appliesTo": "text",
|
|
401
401
|
"inherited": "yes",
|
|
402
|
-
"percentages": "
|
|
403
|
-
"computedValue": "an absolute length",
|
|
402
|
+
"percentages": "relative to computed font-size, i.e. 1em",
|
|
403
|
+
"computedValue": "an absolute length and/or a percentage",
|
|
404
404
|
"canonicalOrder": "n/a",
|
|
405
405
|
"animationType": "by computed value type",
|
|
406
406
|
"styleDeclaration": [
|
|
@@ -410,12 +410,12 @@
|
|
|
410
410
|
},
|
|
411
411
|
"letter-spacing": {
|
|
412
412
|
"name": "letter-spacing",
|
|
413
|
-
"value": "normal | <length>",
|
|
413
|
+
"value": "normal | <length-percentage>",
|
|
414
414
|
"initial": "normal",
|
|
415
415
|
"appliesTo": "inline boxes and text",
|
|
416
416
|
"inherited": "yes",
|
|
417
|
-
"percentages": "
|
|
418
|
-
"computedValue": "an absolute length",
|
|
417
|
+
"percentages": "relative to computed font-size, i.e. 1em",
|
|
418
|
+
"computedValue": "an absolute length and/or a percentage",
|
|
419
419
|
"canonicalOrder": "n/a",
|
|
420
420
|
"animationType": "by computed value type",
|
|
421
421
|
"styleDeclaration": [
|
|
@@ -489,9 +489,12 @@
|
|
|
489
489
|
"<auto()>": {
|
|
490
490
|
"value": "auto(<lang>)"
|
|
491
491
|
},
|
|
492
|
-
"<length>": {
|
|
492
|
+
"<length-percentages>": {
|
|
493
493
|
"prose": "Specifies extra spacing in addition to the intrinsic inter-word spacing defined by the font."
|
|
494
494
|
},
|
|
495
|
+
"<length>": {
|
|
496
|
+
"prose": "Specifies additional spacing between typographic character units. Values may be negative, but there may be implementation-dependent limits."
|
|
497
|
+
},
|
|
495
498
|
"<percentage>": {
|
|
496
499
|
"prose": "Gives the amount of the indent as a percentage of the block container’s own logical width. Percentages must be treated as 0 for the purpose of calculating intrinsic size contributions, but are always resolved normally when performing layout."
|
|
497
500
|
}
|
package/css-text-decor-4.json
CHANGED
|
@@ -276,14 +276,14 @@
|
|
|
276
276
|
},
|
|
277
277
|
"text-shadow": {
|
|
278
278
|
"name": "text-shadow",
|
|
279
|
-
"value": "none |
|
|
279
|
+
"value": "none | <shadow>#",
|
|
280
280
|
"initial": "none",
|
|
281
281
|
"appliesTo": "text",
|
|
282
282
|
"inherited": "yes",
|
|
283
283
|
"percentages": "n/a",
|
|
284
|
-
"computedValue": "either the keyword none or a list, each item consisting of four absolute lengths plus a computed color",
|
|
284
|
+
"computedValue": "either the keyword none or a list, each item consisting of four absolute lengths plus a computed color and optionally also an inset keyword",
|
|
285
285
|
"canonicalOrder": "per grammar",
|
|
286
|
-
"animationType": "
|
|
286
|
+
"animationType": "as shadow list",
|
|
287
287
|
"styleDeclaration": [
|
|
288
288
|
"text-shadow",
|
|
289
289
|
"textShadow"
|
package/css-text-decor.json
CHANGED
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"percentages": "n/a",
|
|
149
149
|
"computedValue": "either the keyword none or a list, each item consisting of three absolute lengths plus a computed color",
|
|
150
150
|
"canonicalOrder": "per grammar",
|
|
151
|
-
"animationType": "
|
|
151
|
+
"animationType": "as shadow list",
|
|
152
152
|
"styleDeclaration": [
|
|
153
153
|
"text-shadow",
|
|
154
154
|
"textShadow"
|
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": "3.0
|
|
4
|
+
"version": "3.1.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/w3c/webref.git"
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"css-tree": "^2.1.0"
|
|
16
16
|
}
|
|
17
|
-
}
|
|
17
|
+
}
|