@webref/css 5.4.4 → 6.0.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/CHANGELOG.md +66 -0
- package/CSS.json +416 -21
- package/README.md +4 -4
- package/SVG.json +42 -35
- package/compat.json +111 -75
- package/compositing.json +101 -12
- package/css-align.json +237 -29
- package/css-anchor.json +177 -19
- package/css-animations-2.json +37 -15
- package/css-animations.json +155 -31
- package/css-backgrounds-4.json +107 -32
- package/css-backgrounds.json +426 -59
- package/css-box.json +243 -20
- package/css-break.json +292 -11
- package/css-cascade-6.json +22 -13
- package/css-cascade.json +50 -15
- package/css-color-5.json +320 -35
- package/css-color-adjust.json +75 -8
- package/css-color.json +1100 -61
- package/css-conditional-4.json +11 -6
- package/css-conditional-5.json +38 -19
- package/css-conditional.json +28 -15
- package/css-contain-3.json +101 -26
- package/css-contain.json +71 -6
- package/css-content.json +263 -30
- package/css-counter-styles.json +455 -18
- package/css-display.json +250 -19
- package/css-easing.json +137 -25
- package/css-env.json +61 -6
- package/css-exclusions.json +65 -6
- package/css-extensions.json +20 -12
- package/css-flexbox.json +132 -11
- package/css-fonts-5.json +255 -13
- package/css-fonts.json +886 -74
- package/css-gcpm-4.json +30 -5
- package/css-gcpm.json +76 -15
- package/css-grid-3.json +10 -9
- package/css-grid.json +442 -42
- package/css-highlight-api.json +13 -5
- package/css-images-4.json +192 -67
- package/css-images.json +152 -33
- package/css-inline.json +525 -16
- package/css-layout-api.json +20 -0
- package/css-line-grid.json +80 -7
- package/css-lists.json +140 -19
- package/css-logical.json +125 -50
- package/css-masking.json +330 -47
- package/css-multicol-2.json +32 -5
- package/css-multicol.json +84 -13
- package/css-namespaces.json +15 -10
- package/css-nav.json +62 -7
- package/css-nesting.json +15 -0
- package/css-overflow-4.json +83 -10
- package/css-overflow.json +239 -18
- package/css-overscroll.json +110 -9
- package/css-page-floats.json +188 -16
- package/css-page.json +262 -67
- package/css-paint-api.json +8 -5
- package/css-position.json +269 -16
- package/css-properties-values-api.json +9 -7
- package/css-pseudo.json +67 -0
- package/css-regions.json +8 -7
- package/css-rhythm.json +69 -10
- package/css-round-display.json +47 -10
- package/css-ruby.json +136 -8
- package/css-scoping.json +27 -0
- package/css-scroll-anchoring.json +20 -5
- package/css-scroll-snap-2.json +272 -10
- package/css-scroll-snap.json +218 -29
- package/css-scrollbars.json +41 -6
- package/css-shadow-parts.json +8 -5
- package/css-shapes-2.json +190 -43
- package/css-shapes.json +130 -36
- package/css-size-adjust.json +26 -5
- package/css-sizing-4.json +404 -23
- package/css-sizing.json +231 -12
- package/css-speech.json +619 -35
- package/css-syntax.json +193 -92
- package/css-tables.json +10 -9
- package/css-text-4.json +800 -40
- package/css-text-decor-4.json +394 -23
- package/css-text-decor.json +159 -14
- package/css-text.json +371 -20
- package/css-transforms-2.json +177 -40
- package/css-transforms.json +137 -45
- package/css-transitions.json +33 -14
- package/css-ui.json +436 -42
- package/css-values-5.json +99 -14
- package/css-values.json +653 -146
- package/css-variables.json +12 -7
- package/css-view-transitions.json +45 -7
- package/css-will-change.json +36 -7
- package/css-writing-modes.json +141 -10
- package/fill-stroke.json +290 -35
- package/filter-effects-2.json +6 -5
- package/filter-effects.json +109 -45
- package/fullscreen.json +15 -0
- package/mathml-core.json +10 -9
- package/mediaqueries-5.json +505 -52
- package/mediaqueries.json +307 -40
- package/motion.json +99 -16
- package/package.json +1 -1
- package/scroll-animations.json +225 -24
- package/selectors.json +368 -30
- package/svg-strokes.json +8 -7
- package/upgrade-insecure-requests.json +26 -0
- package/html.json +0 -19
package/css-highlight-api.json
CHANGED
|
@@ -3,11 +3,19 @@
|
|
|
3
3
|
"title": "CSS Custom Highlight API Module Level 1",
|
|
4
4
|
"url": "https://drafts.csswg.org/css-highlight-api-1/"
|
|
5
5
|
},
|
|
6
|
-
"properties":
|
|
7
|
-
"atrules":
|
|
8
|
-
"
|
|
9
|
-
|
|
6
|
+
"properties": [],
|
|
7
|
+
"atrules": [],
|
|
8
|
+
"selectors": [
|
|
9
|
+
{
|
|
10
|
+
"name": "::highlight(<custom-highlight-name>)",
|
|
10
11
|
"prose": "The ::highlight(<custom-highlight-name>) pseudo-element (also known as the custom highlight pseudo-element) represents the portion of a document that is being contained or partially contained in all the ranges of the registered custom highlight with the custom highlight name <custom-highlight-name>, if any. <custom-highlight-name> must be a valid CSS <ident-token>."
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
+
],
|
|
14
|
+
"values": [
|
|
15
|
+
{
|
|
16
|
+
"name": "<custom-highlight-name>",
|
|
17
|
+
"prose": "The ::highlight(<custom-highlight-name>) pseudo-element (also known as the custom highlight pseudo-element) represents the portion of a document that is being contained or partially contained in all the ranges of the registered custom highlight with the custom highlight name <custom-highlight-name>, if any. <custom-highlight-name> must be a valid CSS <ident-token>.",
|
|
18
|
+
"type": "type"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
13
21
|
}
|
package/css-images-4.json
CHANGED
|
@@ -3,23 +3,8 @@
|
|
|
3
3
|
"title": "CSS Images Module Level 4",
|
|
4
4
|
"url": "https://drafts.csswg.org/css-images-4/"
|
|
5
5
|
},
|
|
6
|
-
"properties":
|
|
7
|
-
|
|
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
|
-
},
|
|
22
|
-
"object-fit": {
|
|
6
|
+
"properties": [
|
|
7
|
+
{
|
|
23
8
|
"name": "object-fit",
|
|
24
9
|
"value": "fill | none | [contain | cover] || scale-down",
|
|
25
10
|
"initial": "fill",
|
|
@@ -29,12 +14,44 @@
|
|
|
29
14
|
"computedValue": "specified keyword(s)",
|
|
30
15
|
"canonicalOrder": "per grammar",
|
|
31
16
|
"animationType": "discrete",
|
|
17
|
+
"values": [
|
|
18
|
+
{
|
|
19
|
+
"name": "fill",
|
|
20
|
+
"prose": "The replaced content is sized to fill the element’s content box: the object’s concrete object size is the element’s used width and height.",
|
|
21
|
+
"type": "value",
|
|
22
|
+
"value": "fill"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "none",
|
|
26
|
+
"prose": "The replaced content is not resized to fit inside the element’s content box: determine the object’s concrete object size using the default sizing algorithm with no specified size, and a default object size equal to the replaced element’s used width and height.",
|
|
27
|
+
"type": "value",
|
|
28
|
+
"value": "none"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "contain",
|
|
32
|
+
"prose": "The replaced content is sized to maintain its aspect ratio while fitting within the element’s content box: its concrete object size is resolved as a contain constraint against the element’s used width and height. If the scale-down flag is used, size the content as if none or contain were specified, whichever would result in a smaller concrete object size.",
|
|
33
|
+
"type": "value",
|
|
34
|
+
"value": "contain"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "cover",
|
|
38
|
+
"prose": "The replaced content is sized to maintain its aspect ratio while filling the element’s entire content box: its concrete object size is resolved as a cover constraint against the element’s used width and height. If the scale-down flag is used, size the content as if none or cover were specified, whichever would result in a smaller concrete object size.",
|
|
39
|
+
"type": "value",
|
|
40
|
+
"value": "cover"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "scale-down",
|
|
44
|
+
"prose": "Equivalent to contain scale-down.",
|
|
45
|
+
"type": "value",
|
|
46
|
+
"value": "scale-down"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
32
49
|
"styleDeclaration": [
|
|
33
50
|
"object-fit",
|
|
34
51
|
"objectFit"
|
|
35
52
|
]
|
|
36
53
|
},
|
|
37
|
-
|
|
54
|
+
{
|
|
38
55
|
"name": "image-resolution",
|
|
39
56
|
"value": "[ from-image || <resolution> ] && snap?",
|
|
40
57
|
"initial": "1dppx",
|
|
@@ -44,107 +61,215 @@
|
|
|
44
61
|
"computedValue": "specified keyword(s) and/or <resolution> (possibly adjusted for snap, see below)",
|
|
45
62
|
"canonicalOrder": "per grammar",
|
|
46
63
|
"animationType": "discrete",
|
|
64
|
+
"values": [
|
|
65
|
+
{
|
|
66
|
+
"name": "<resolution>",
|
|
67
|
+
"prose": "Specifies the preferred resolution explicitly. A \"dot\" in this case corresponds to a single image pixel.",
|
|
68
|
+
"type": "value",
|
|
69
|
+
"value": "<resolution>"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "from-image",
|
|
73
|
+
"prose": "The image’s preferred resolution is taken as that specified by the image format (the natural resolution). If the image does not specify its own resolution, the explicitly specified resolution is used (if given), else it defaults to 1dppx.",
|
|
74
|
+
"type": "value",
|
|
75
|
+
"value": "from-image"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "snap",
|
|
79
|
+
"prose": "If the \"snap\" keyword is provided, the computed <resolution> (if any) is the specified resolution rounded to the nearest value that would map one image pixel to an integer number of device pixels. If the resolution is taken from the image, then the used natural resolution is the image’s native resolution similarly adjusted.",
|
|
80
|
+
"type": "value",
|
|
81
|
+
"value": "snap"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
47
84
|
"styleDeclaration": [
|
|
48
85
|
"image-resolution",
|
|
49
86
|
"imageResolution"
|
|
50
87
|
]
|
|
51
88
|
}
|
|
52
|
-
|
|
53
|
-
"atrules":
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
"<type()>": {
|
|
60
|
-
"value": "type( <string> )"
|
|
61
|
-
},
|
|
62
|
-
"<repeating-linear-gradient()>": {
|
|
63
|
-
"prose": "In addition to linear-gradient(), radial-gradient(), and conic-gradient(), this specification defines repeating-linear-gradient(), repeating-radial-gradient(), and repeating-conic-gradient() values. These notations take the same values and are interpreted the same as their respective non-repeating siblings defined previously."
|
|
64
|
-
},
|
|
65
|
-
"<repeating-radial-gradient()>": {
|
|
66
|
-
"prose": "In addition to linear-gradient(), radial-gradient(), and conic-gradient(), this specification defines repeating-linear-gradient(), repeating-radial-gradient(), and repeating-conic-gradient() values. These notations take the same values and are interpreted the same as their respective non-repeating siblings defined previously."
|
|
67
|
-
},
|
|
68
|
-
"<repeating-conic-gradient()>": {
|
|
69
|
-
"prose": "In addition to linear-gradient(), radial-gradient(), and conic-gradient(), this specification defines repeating-linear-gradient(), repeating-radial-gradient(), and repeating-conic-gradient() values. These notations take the same values and are interpreted the same as their respective non-repeating siblings defined previously."
|
|
70
|
-
},
|
|
71
|
-
"<-webkit-image-set()>": {
|
|
72
|
-
"prose": "Implementations must accept -webkit-image-set() as a parse-time alias of image-set(). (It’s a valid value, with identical arguments to image-set(), and is turned into image-set() during parsing.)"
|
|
73
|
-
},
|
|
74
|
-
"<image>": {
|
|
89
|
+
],
|
|
90
|
+
"atrules": [],
|
|
91
|
+
"selectors": [],
|
|
92
|
+
"values": [
|
|
93
|
+
{
|
|
94
|
+
"name": "<image>",
|
|
95
|
+
"type": "type",
|
|
75
96
|
"value": "<url> | <image()> | <image-set()> | <cross-fade()> | <element()> | <gradient>"
|
|
76
97
|
},
|
|
77
|
-
|
|
98
|
+
{
|
|
99
|
+
"name": "image-set()",
|
|
100
|
+
"prose": "Delivering the most appropriate image resolution for a user’s device can be a difficult task. Ideally, images should be in the same resolution as the device they’re being viewed in, which can vary between users. However, other factors can factor into the decision of which image to send; for example, if the user is on a slow mobile connection, they may prefer to receive lower-res images rather than waiting for a large proper-res image to load. The image-set() function allows an author to ignore most of these issues, simply providing multiple resolutions of an image and letting the UA decide which is most appropriate in a given situation.",
|
|
101
|
+
"type": "function",
|
|
102
|
+
"value": "image-set( <image-set-option># )",
|
|
103
|
+
"values": [
|
|
104
|
+
{
|
|
105
|
+
"name": "type()",
|
|
106
|
+
"value": "type( <string> )",
|
|
107
|
+
"type": "function"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "<image-set-option>",
|
|
113
|
+
"type": "type",
|
|
78
114
|
"value": "[ <image> | <string> ] [ <resolution> || type(<string>) ]"
|
|
79
115
|
},
|
|
80
|
-
|
|
116
|
+
{
|
|
117
|
+
"name": "image()",
|
|
118
|
+
"type": "function",
|
|
81
119
|
"value": "image( <image-tags>? [ <image-src>? , <color>? ]! )"
|
|
82
120
|
},
|
|
83
|
-
|
|
121
|
+
{
|
|
122
|
+
"name": "<image-tags>",
|
|
123
|
+
"type": "type",
|
|
84
124
|
"value": "[ ltr | rtl ]"
|
|
85
125
|
},
|
|
86
|
-
|
|
126
|
+
{
|
|
127
|
+
"name": "<image-src>",
|
|
128
|
+
"type": "type",
|
|
87
129
|
"value": "[ <url> | <string> ]"
|
|
88
130
|
},
|
|
89
|
-
|
|
131
|
+
{
|
|
132
|
+
"name": "cross-fade()",
|
|
133
|
+
"type": "function",
|
|
90
134
|
"value": "cross-fade( <cf-image># )"
|
|
91
135
|
},
|
|
92
|
-
|
|
136
|
+
{
|
|
137
|
+
"name": "<cf-image>",
|
|
138
|
+
"type": "type",
|
|
93
139
|
"value": "<percentage [0,100]>? && [ <image> | <color> ]"
|
|
94
140
|
},
|
|
95
|
-
|
|
141
|
+
{
|
|
142
|
+
"name": "element()",
|
|
143
|
+
"type": "function",
|
|
96
144
|
"value": "element( <id-selector> )"
|
|
97
145
|
},
|
|
98
|
-
|
|
146
|
+
{
|
|
147
|
+
"name": "<gradient>",
|
|
148
|
+
"type": "type",
|
|
99
149
|
"value": "[ <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()> | <repeating-conic-gradient()> ]"
|
|
100
150
|
},
|
|
101
|
-
|
|
151
|
+
{
|
|
152
|
+
"name": "linear-gradient()",
|
|
153
|
+
"type": "function",
|
|
102
154
|
"value": "linear-gradient( [ <angle> | to <side-or-corner> ]? || <color-interpolation-method>, <color-stop-list> )"
|
|
103
155
|
},
|
|
104
|
-
|
|
156
|
+
{
|
|
157
|
+
"name": "<side-or-corner>",
|
|
158
|
+
"type": "type",
|
|
105
159
|
"value": "[left | right] || [top | bottom]"
|
|
106
160
|
},
|
|
107
|
-
|
|
161
|
+
{
|
|
162
|
+
"name": "radial-gradient()",
|
|
163
|
+
"type": "function",
|
|
108
164
|
"value": "radial-gradient( [[ <ending-shape> || <size> ]? [ at <position> ]? ] || <color-interpolation-method>, <color-stop-list> )"
|
|
109
165
|
},
|
|
110
|
-
|
|
166
|
+
{
|
|
167
|
+
"name": "conic-gradient()",
|
|
168
|
+
"type": "function",
|
|
111
169
|
"value": "conic-gradient( [ [ from <angle> ]? [ at <position> ]? ] || <color-interpolation-method>, <angular-color-stop-list> )"
|
|
112
170
|
},
|
|
113
|
-
|
|
171
|
+
{
|
|
172
|
+
"name": "repeating-linear-gradient()",
|
|
173
|
+
"prose": "In addition to linear-gradient(), radial-gradient(), and conic-gradient(), this specification defines repeating-linear-gradient(), repeating-radial-gradient(), and repeating-conic-gradient() values. These notations take the same values and are interpreted the same as their respective non-repeating siblings defined previously.",
|
|
174
|
+
"type": "function"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "repeating-radial-gradient()",
|
|
178
|
+
"prose": "In addition to linear-gradient(), radial-gradient(), and conic-gradient(), this specification defines repeating-linear-gradient(), repeating-radial-gradient(), and repeating-conic-gradient() values. These notations take the same values and are interpreted the same as their respective non-repeating siblings defined previously.",
|
|
179
|
+
"type": "function"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "repeating-conic-gradient()",
|
|
183
|
+
"prose": "In addition to linear-gradient(), radial-gradient(), and conic-gradient(), this specification defines repeating-linear-gradient(), repeating-radial-gradient(), and repeating-conic-gradient() values. These notations take the same values and are interpreted the same as their respective non-repeating siblings defined previously.",
|
|
184
|
+
"type": "function"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "<color-stop-list>",
|
|
188
|
+
"type": "type",
|
|
114
189
|
"value": "<linear-color-stop> , [ <linear-color-hint>? , <linear-color-stop> ]#"
|
|
115
190
|
},
|
|
116
|
-
|
|
191
|
+
{
|
|
192
|
+
"name": "<linear-color-stop>",
|
|
193
|
+
"type": "type",
|
|
117
194
|
"value": "<color> && <color-stop-length>?"
|
|
118
195
|
},
|
|
119
|
-
|
|
196
|
+
{
|
|
197
|
+
"name": "<linear-color-hint>",
|
|
198
|
+
"type": "type",
|
|
120
199
|
"value": "<length-percentage>"
|
|
121
200
|
},
|
|
122
|
-
|
|
201
|
+
{
|
|
202
|
+
"name": "<color-stop-length>",
|
|
203
|
+
"type": "type",
|
|
123
204
|
"value": "<length-percentage>{1,2}"
|
|
124
205
|
},
|
|
125
|
-
|
|
206
|
+
{
|
|
207
|
+
"name": "<angular-color-stop-list>",
|
|
208
|
+
"type": "type",
|
|
126
209
|
"value": "<angular-color-stop> , [ <angular-color-hint>? , <angular-color-stop> ]#"
|
|
127
210
|
},
|
|
128
|
-
|
|
211
|
+
{
|
|
212
|
+
"name": "<angular-color-stop>",
|
|
213
|
+
"type": "type",
|
|
129
214
|
"value": "<color> && <color-stop-angle>?"
|
|
130
215
|
},
|
|
131
|
-
|
|
216
|
+
{
|
|
217
|
+
"name": "<angular-color-hint>",
|
|
218
|
+
"type": "type",
|
|
132
219
|
"value": "<angle-percentage>"
|
|
133
220
|
},
|
|
134
|
-
|
|
221
|
+
{
|
|
222
|
+
"name": "<color-stop-angle>",
|
|
223
|
+
"type": "type",
|
|
135
224
|
"value": "<angle-percentage>{1,2}"
|
|
136
225
|
},
|
|
137
|
-
|
|
226
|
+
{
|
|
227
|
+
"name": "<color-stop>",
|
|
228
|
+
"type": "type",
|
|
138
229
|
"value": "<color-stop-length> | <color-stop-angle>"
|
|
139
230
|
},
|
|
140
|
-
|
|
231
|
+
{
|
|
232
|
+
"name": "<image-1D>",
|
|
233
|
+
"prose": "While <image> values represent a 2-dimensional (2D) image, and <color> can be thought of as a 0-dimensional (0D) image (unvarying in either axis), some contexts require a 1-dimensional (1D) image, which specifies colors along an abstract, directionless, single-axis paint line. The <image-1D> type represents such 1D images, including the stripes() functional notation:",
|
|
234
|
+
"type": "type",
|
|
141
235
|
"value": "<stripes()>"
|
|
142
236
|
},
|
|
143
|
-
|
|
144
|
-
"
|
|
237
|
+
{
|
|
238
|
+
"name": "stripes()",
|
|
239
|
+
"prose": "The stripes() function defines a 1D image as a comma-separated list of colored stripes, each placed end-to-end on the paint line in the order given.",
|
|
240
|
+
"type": "function",
|
|
241
|
+
"value": "stripes( <color-stripe># )",
|
|
242
|
+
"values": [
|
|
243
|
+
{
|
|
244
|
+
"name": "<percentage [0,100]>",
|
|
245
|
+
"prose": "Percentage thicknesses are relative to the total width. Only values between 0% and 100% (inclusive) are valid.",
|
|
246
|
+
"type": "value",
|
|
247
|
+
"value": "<percentage [0,100]>"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "<length [0,∞]>",
|
|
251
|
+
"prose": "Negative length values are invalid.",
|
|
252
|
+
"type": "value",
|
|
253
|
+
"value": "<length [0,∞]>"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "<flex>",
|
|
257
|
+
"prose": "A <flex> is evaluated as a fraction of the total width relative to the total sum of <flex> entries in the function, after subtracting the thickness of any non-<flex> entries (flooring the subtraction result at zero). If the sum of <flex> values is less than 1fr, the result of the subtraction is multiplied by the sum’s value before being distributed.",
|
|
258
|
+
"type": "value",
|
|
259
|
+
"value": "<flex>"
|
|
260
|
+
}
|
|
261
|
+
]
|
|
145
262
|
},
|
|
146
|
-
|
|
263
|
+
{
|
|
264
|
+
"name": "<color-stripe>",
|
|
265
|
+
"prose": "Each <color-stripe> entry defines a solid-color stripe with the specified <color> and thickness. If the thickness is omitted, it defaults to 1fr. Thickness values are intepreted as follows:",
|
|
266
|
+
"type": "type",
|
|
147
267
|
"value": "<color> && [ <length-percentage> | <flex> ]?"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "-webkit-image-set()",
|
|
271
|
+
"prose": "Implementations must accept -webkit-image-set() as a parse-time alias of image-set(). (It’s a valid value, with identical arguments to image-set(), and is turned into image-set() during parsing.)",
|
|
272
|
+
"type": "function"
|
|
148
273
|
}
|
|
149
|
-
|
|
274
|
+
]
|
|
150
275
|
}
|
package/css-images.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"title": "CSS Images Module Level 3",
|
|
4
4
|
"url": "https://drafts.csswg.org/css-images-3/"
|
|
5
5
|
},
|
|
6
|
-
"properties":
|
|
7
|
-
|
|
6
|
+
"properties": [
|
|
7
|
+
{
|
|
8
8
|
"name": "object-fit",
|
|
9
9
|
"value": "fill | contain | cover | none | scale-down",
|
|
10
10
|
"initial": "fill",
|
|
@@ -14,12 +14,44 @@
|
|
|
14
14
|
"computedValue": "specified keyword",
|
|
15
15
|
"canonicalOrder": "per grammar",
|
|
16
16
|
"animationType": "discrete",
|
|
17
|
+
"values": [
|
|
18
|
+
{
|
|
19
|
+
"name": "fill",
|
|
20
|
+
"prose": "The replaced content is sized to fill the element’s content box: the object’s concrete object size is the element’s used width and height.",
|
|
21
|
+
"type": "value",
|
|
22
|
+
"value": "fill"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "contain",
|
|
26
|
+
"prose": "The replaced content is sized to maintain its natural aspect ratio while fitting within the element’s content box: its concrete object size is resolved as a contain constraint against the element’s used width and height.",
|
|
27
|
+
"type": "value",
|
|
28
|
+
"value": "contain"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "cover",
|
|
32
|
+
"prose": "The replaced content is sized to maintain its natural aspect ratio while filling the element’s entire content box: its concrete object size is resolved as a cover constraint against the element’s used width and height.",
|
|
33
|
+
"type": "value",
|
|
34
|
+
"value": "cover"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "none",
|
|
38
|
+
"prose": "The replaced content is not resized to fit inside the element’s content box: determine the object’s concrete object size using the default sizing algorithm with no specified size, and a default object size equal to the replaced element’s used width and height.",
|
|
39
|
+
"type": "value",
|
|
40
|
+
"value": "none"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "scale-down",
|
|
44
|
+
"prose": "Size the content as if none or contain were specified, whichever would result in a smaller concrete object size.",
|
|
45
|
+
"type": "value",
|
|
46
|
+
"value": "scale-down"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
17
49
|
"styleDeclaration": [
|
|
18
50
|
"object-fit",
|
|
19
51
|
"objectFit"
|
|
20
52
|
]
|
|
21
53
|
},
|
|
22
|
-
|
|
54
|
+
{
|
|
23
55
|
"name": "object-position",
|
|
24
56
|
"value": "<position>",
|
|
25
57
|
"initial": "50% 50%",
|
|
@@ -34,7 +66,7 @@
|
|
|
34
66
|
"objectPosition"
|
|
35
67
|
]
|
|
36
68
|
},
|
|
37
|
-
|
|
69
|
+
{
|
|
38
70
|
"name": "image-orientation",
|
|
39
71
|
"value": "from-image | none | [ <angle> || flip ]",
|
|
40
72
|
"initial": "from-image",
|
|
@@ -44,12 +76,32 @@
|
|
|
44
76
|
"computedValue": "the specified keyword, or an <angle>, rounded and normalized (see text), plus optionally a flip keyword",
|
|
45
77
|
"canonicalOrder": "per grammar",
|
|
46
78
|
"animationType": "discrete",
|
|
79
|
+
"values": [
|
|
80
|
+
{
|
|
81
|
+
"name": "none",
|
|
82
|
+
"prose": "No additional rotation is applied: the image is oriented as encoded.",
|
|
83
|
+
"type": "value",
|
|
84
|
+
"value": "none"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "from-image",
|
|
88
|
+
"prose": "If the image has an orientation specified in its metadata, such as EXIF, this value computes to the angle that the metadata specifies is necessary to correctly orient the image. If necessary, this angle is then rounded and normalized as described above for an <angle> value. If there is no orientation specified in its metadata, this value computes to none.",
|
|
89
|
+
"type": "value",
|
|
90
|
+
"value": "from-image"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "<angle>",
|
|
94
|
+
"prose": "Positive <angle> values cause the image to be rotated to the right (in a clockwise direction), while negative values cause a rotation to the left. If the <angle> is omitted, it defaults to 0deg. If flip is specified, after rotation the image is flipped horizontally. This value only applies to content images; decorative images continue to behave as from-image. This value is deprecated and is optional for implementations except those conforming to [CSS-PRINT]. The computed value of the property is calculated by rounding the <angle> to the nearest quarter turn, rounding towards positive infinity when that’s ambiguous, then moduloing the value by 1turn (so that it lies in the half-open range [0turn, 1turn)).",
|
|
95
|
+
"type": "value",
|
|
96
|
+
"value": "<angle>"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
47
99
|
"styleDeclaration": [
|
|
48
100
|
"image-orientation",
|
|
49
101
|
"imageOrientation"
|
|
50
102
|
]
|
|
51
103
|
},
|
|
52
|
-
|
|
104
|
+
{
|
|
53
105
|
"name": "image-rendering",
|
|
54
106
|
"value": "auto | smooth | high-quality | pixelated | crisp-edges",
|
|
55
107
|
"initial": "auto",
|
|
@@ -59,51 +111,118 @@
|
|
|
59
111
|
"computedValue": "specified keyword",
|
|
60
112
|
"canonicalOrder": "per grammar",
|
|
61
113
|
"animationType": "discrete",
|
|
114
|
+
"values": [
|
|
115
|
+
{
|
|
116
|
+
"name": "auto",
|
|
117
|
+
"prose": "The scaling algorithm is UA dependent.",
|
|
118
|
+
"type": "value",
|
|
119
|
+
"value": "auto"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "smooth",
|
|
123
|
+
"prose": "The image should be scaled with an algorithm that maximizes the appearance of the image. In particular, scaling algorithms that \"smooth\" colors are acceptable, such as bilinear interpolation. This is intended for images such as photos.",
|
|
124
|
+
"type": "value",
|
|
125
|
+
"value": "smooth"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "high-quality",
|
|
129
|
+
"prose": "Identical to smooth, but with a preference for higher-quality scaling. If system resources are constrained, images with high-quality should be prioritized over those with any other value, when considering which images to degrade the quality of and to what degree.",
|
|
130
|
+
"type": "value",
|
|
131
|
+
"value": "high-quality"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "pixelated",
|
|
135
|
+
"prose": "The image is scaled in a way that preserves the pixelated nature of the original as much as possible, but allows minor smoothing instead of awkward distortion when necessary. For each axis, independently determine the integer multiple of its natural size that puts it closest to the target size and is greater than zero. Scale it to this integer-multiple-size using nearest neighbor, then scale it the rest of the way to the target size as for smooth.",
|
|
136
|
+
"type": "value",
|
|
137
|
+
"value": "pixelated"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "crisp-edges",
|
|
141
|
+
"prose": "The image is scaled in a way that preserves contrast and edges, and which does not smooth colors or introduce blur to the image in the process. The image must be scaled with the nearest neighbor algorithm: treating the original image’s pixel grid as a literal grid of rectangles, scale those to the desired size, then each pixel of the final image takes its color solely from the nearest pixel of the scaled original image.",
|
|
142
|
+
"type": "value",
|
|
143
|
+
"value": "crisp-edges"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "nearest neighbor",
|
|
147
|
+
"prose": "The image must be scaled with the nearest neighbor algorithm: treating the original image’s pixel grid as a literal grid of rectangles, scale those to the desired size, then each pixel of the final image takes its color solely from the nearest pixel of the scaled original image.",
|
|
148
|
+
"type": "value",
|
|
149
|
+
"value": "nearest neighbor"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
62
152
|
"styleDeclaration": [
|
|
63
153
|
"image-rendering",
|
|
64
154
|
"imageRendering"
|
|
65
155
|
]
|
|
66
156
|
}
|
|
67
|
-
|
|
68
|
-
"atrules":
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
"<radial-gradient()>": {
|
|
75
|
-
"prose": "The radial-gradient() notation specifies a radial gradient by indicating the center of the gradient (where the 0% ellipse will be) and the size and shape of the ending shape (the 100% ellipse). Color stops are given as a list, just as for linear-gradient(). Starting from the gradient center and progressing towards (and potentially beyond) the ending shape, uniformly-scaled concentric ellipses are drawn and colored according to the specified color stops.",
|
|
76
|
-
"value": "radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"
|
|
77
|
-
},
|
|
78
|
-
"<repeating-linear-gradient()>": {
|
|
79
|
-
"prose": "In addition to linear-gradient() and radial-gradient(), this specification defines repeating-linear-gradient() and repeating-radial-gradient() values. These notations take the same values and are interpreted the same as their respective non-repeating siblings defined previously."
|
|
80
|
-
},
|
|
81
|
-
"<repeating-radial-gradient()>": {
|
|
82
|
-
"prose": "In addition to linear-gradient() and radial-gradient(), this specification defines repeating-linear-gradient() and repeating-radial-gradient() values. These notations take the same values and are interpreted the same as their respective non-repeating siblings defined previously."
|
|
83
|
-
},
|
|
84
|
-
"<image>": {
|
|
157
|
+
],
|
|
158
|
+
"atrules": [],
|
|
159
|
+
"selectors": [],
|
|
160
|
+
"values": [
|
|
161
|
+
{
|
|
162
|
+
"name": "<image>",
|
|
163
|
+
"type": "type",
|
|
85
164
|
"value": "<url> | <gradient>"
|
|
86
165
|
},
|
|
87
|
-
|
|
166
|
+
{
|
|
167
|
+
"name": "<gradient>",
|
|
168
|
+
"type": "type",
|
|
88
169
|
"value": "<linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()>"
|
|
89
170
|
},
|
|
90
|
-
|
|
171
|
+
{
|
|
172
|
+
"name": "linear-gradient()",
|
|
173
|
+
"prose": "The linear-gradient() notation specifies a linear gradient in CSS. Its syntax is as follows:",
|
|
174
|
+
"type": "function",
|
|
175
|
+
"value": "linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "<side-or-corner>",
|
|
179
|
+
"type": "type",
|
|
91
180
|
"value": "[left | right] || [top | bottom]"
|
|
92
181
|
},
|
|
93
|
-
|
|
94
|
-
"
|
|
182
|
+
{
|
|
183
|
+
"name": "radial-gradient()",
|
|
184
|
+
"prose": "The radial-gradient() notation specifies a radial gradient by indicating the center of the gradient (where the 0% ellipse will be) and the size and shape of the ending shape (the 100% ellipse). Color stops are given as a list, just as for linear-gradient(). Starting from the gradient center and progressing towards (and potentially beyond) the ending shape, uniformly-scaled concentric ellipses are drawn and colored according to the specified color stops.",
|
|
185
|
+
"type": "function",
|
|
186
|
+
"value": "radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )",
|
|
187
|
+
"values": [
|
|
188
|
+
{
|
|
189
|
+
"name": "<length [0,∞]>",
|
|
190
|
+
"prose": "Gives the radius of the circle explicitly. Negative values are invalid.",
|
|
191
|
+
"type": "value",
|
|
192
|
+
"value": "<length [0,∞]>"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "<length-percentage [0,∞]>{2}",
|
|
196
|
+
"prose": "Gives the size of the ellipse explicitly. The first value represents the horizontal radius, the second the vertical radius. Percentages values are relative to the corresponding dimension of the gradient box. Negative values are invalid.",
|
|
197
|
+
"type": "value",
|
|
198
|
+
"value": "<length-percentage [0,∞]>{2}"
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "repeating-linear-gradient()",
|
|
204
|
+
"prose": "In addition to linear-gradient() and radial-gradient(), this specification defines repeating-linear-gradient() and repeating-radial-gradient() values. These notations take the same values and are interpreted the same as their respective non-repeating siblings defined previously.",
|
|
205
|
+
"type": "function"
|
|
95
206
|
},
|
|
96
|
-
|
|
97
|
-
"
|
|
207
|
+
{
|
|
208
|
+
"name": "repeating-radial-gradient()",
|
|
209
|
+
"prose": "In addition to linear-gradient() and radial-gradient(), this specification defines repeating-linear-gradient() and repeating-radial-gradient() values. These notations take the same values and are interpreted the same as their respective non-repeating siblings defined previously.",
|
|
210
|
+
"type": "function"
|
|
98
211
|
},
|
|
99
|
-
|
|
212
|
+
{
|
|
213
|
+
"name": "<color-stop-list>",
|
|
214
|
+
"type": "type",
|
|
100
215
|
"value": "<linear-color-stop> , [ <linear-color-hint>? , <linear-color-stop> ]#"
|
|
101
216
|
},
|
|
102
|
-
|
|
217
|
+
{
|
|
218
|
+
"name": "<linear-color-stop>",
|
|
219
|
+
"type": "type",
|
|
103
220
|
"value": "<color> && <length-percentage>?"
|
|
104
221
|
},
|
|
105
|
-
|
|
222
|
+
{
|
|
223
|
+
"name": "<linear-color-hint>",
|
|
224
|
+
"type": "type",
|
|
106
225
|
"value": "<length-percentage>"
|
|
107
226
|
}
|
|
108
|
-
|
|
227
|
+
]
|
|
109
228
|
}
|