@webref/css 3.0.8 → 3.0.9
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-images-4.json +30 -0
- package/css-shapes-2.json +1 -1
- package/css-shapes.json +9 -0
- package/css-text-4.json +10 -7
- 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-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?",
|
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/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.0.9",
|
|
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
|
+
}
|