@webref/css 6.10.4 → 6.11.1
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 +83 -8
- package/README.md +1 -0
- package/SVG.json +27 -0
- package/compat.json +75 -0
- package/compositing.json +22 -0
- package/css-align.json +59 -0
- package/css-anchor-position.json +247 -81
- package/css-animations-2.json +13 -0
- package/css-animations.json +34 -0
- package/css-backgrounds-4.json +12 -0
- package/css-backgrounds.json +78 -0
- package/css-borders.json +91 -0
- package/css-box.json +48 -0
- package/css-break.json +50 -0
- package/css-cascade-6.json +3 -0
- package/css-cascade.json +10 -0
- package/css-color-5.json +74 -0
- package/css-color-6.json +6 -0
- package/css-color-adjust.json +14 -0
- package/css-color.json +272 -0
- package/css-conditional-4.json +2 -0
- package/css-conditional-5.json +7 -0
- package/css-conditional.json +6 -0
- package/css-contain-3.json +27 -0
- package/css-contain.json +12 -0
- package/css-content.json +86 -13
- package/css-counter-styles.json +85 -0
- package/css-display.json +48 -0
- package/css-easing.json +24 -0
- package/css-env.json +11 -0
- package/css-exclusions.json +11 -0
- package/css-extensions.json +4 -0
- package/css-flexbox.json +24 -0
- package/css-fonts-5.json +49 -3
- package/css-fonts.json +207 -2
- package/css-gcpm-4.json +10 -4
- package/css-gcpm.json +13 -1
- package/css-grid-3.json +1 -0
- package/css-grid.json +88 -0
- package/css-highlight-api.json +3 -1
- package/css-images-4.json +49 -0
- package/css-images-5.json +3 -0
- package/css-images.json +46 -0
- package/css-inline.json +93 -0
- package/css-layout-api.json +1 -0
- package/css-line-grid.json +14 -0
- package/css-link-params.json +2 -0
- package/css-lists.json +34 -0
- package/css-logical.json +27 -0
- package/css-masking.json +69 -0
- package/css-multicol-2.json +5 -0
- package/css-multicol.json +19 -0
- package/css-namespaces.json +2 -0
- package/css-nav.json +10 -0
- package/css-nesting.json +2 -1
- package/css-overflow-4.json +37 -1
- package/css-overflow.json +38 -0
- package/css-overscroll.json +20 -0
- package/css-page-floats.json +34 -0
- package/css-page.json +52 -0
- package/css-paint-api.json +1 -0
- package/css-position-4.json +5 -1
- package/css-position.json +50 -0
- package/css-properties-values-api.json +4 -0
- package/css-pseudo.json +23 -10
- package/css-regions.json +3 -0
- package/css-rhythm.json +15 -0
- package/css-round-display.json +8 -0
- package/css-ruby.json +22 -0
- package/css-scoping.json +8 -4
- package/css-scroll-anchoring.json +3 -0
- package/css-scroll-snap-2.json +55 -5
- package/css-scroll-snap.json +53 -0
- package/css-scrollbars.json +7 -0
- package/css-shadow-parts.json +1 -0
- package/css-shapes-2.json +34 -0
- package/css-shapes.json +22 -0
- package/css-size-adjust.json +4 -0
- package/css-sizing-4.json +59 -0
- package/css-sizing.json +42 -0
- package/css-speech.json +115 -0
- package/css-syntax.json +43 -0
- package/css-tables.json +5 -0
- package/css-text-4.json +161 -0
- package/css-text-decor-4.json +75 -0
- package/css-text-decor.json +32 -0
- package/css-text.json +70 -0
- package/css-transforms-2.json +37 -0
- package/css-transforms.json +26 -0
- package/css-transitions-2.json +4 -0
- package/css-transitions.json +9 -0
- package/css-ui.json +92 -0
- package/css-values-5.json +59 -0
- package/css-values.json +115 -0
- package/css-variables.json +2 -0
- package/css-view-transitions-2.json +49 -3
- package/css-view-transitions.json +16 -13
- package/css-viewport.json +43 -0
- package/css-will-change.json +6 -0
- package/css-writing-modes.json +26 -0
- package/fill-stroke.json +66 -0
- package/filter-effects-2.json +1 -0
- package/filter-effects.json +24 -0
- package/html.json +3 -0
- package/mathml-core.json +3 -0
- package/mediaqueries-5.json +121 -0
- package/mediaqueries.json +77 -0
- package/motion.json +32 -0
- package/package.json +1 -1
- package/scroll-animations.json +54 -0
- package/selectors.json +173 -72
- package/svg-strokes.json +3 -0
- package/upgrade-insecure-requests.json +2 -0
- package/webvtt.json +8 -4
package/css-highlight-api.json
CHANGED
|
@@ -8,13 +8,15 @@
|
|
|
8
8
|
"selectors": [
|
|
9
9
|
{
|
|
10
10
|
"name": "::highlight()",
|
|
11
|
-
"value": "::highlight(<custom-highlight-name>)"
|
|
11
|
+
"value": "::highlight(<custom-highlight-name>)",
|
|
12
|
+
"href": "https://drafts.csswg.org/css-highlight-api-1/#selectordef-highlight-custom-highlight-name"
|
|
12
13
|
}
|
|
13
14
|
],
|
|
14
15
|
"values": [
|
|
15
16
|
{
|
|
16
17
|
"name": "<custom-highlight-name>",
|
|
17
18
|
"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>.",
|
|
19
|
+
"href": "https://drafts.csswg.org/css-highlight-api-1/#typedef-custom-highlight-name",
|
|
18
20
|
"type": "type"
|
|
19
21
|
}
|
|
20
22
|
]
|
package/css-images-4.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"properties": [
|
|
7
7
|
{
|
|
8
8
|
"name": "object-fit",
|
|
9
|
+
"href": "https://drafts.csswg.org/css-images-4/#propdef-object-fit",
|
|
9
10
|
"value": "fill | none | [contain | cover] || scale-down",
|
|
10
11
|
"initial": "fill",
|
|
11
12
|
"appliesTo": "replaced elements",
|
|
@@ -18,30 +19,35 @@
|
|
|
18
19
|
{
|
|
19
20
|
"name": "fill",
|
|
20
21
|
"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.",
|
|
22
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-object-fit-fill",
|
|
21
23
|
"type": "value",
|
|
22
24
|
"value": "fill"
|
|
23
25
|
},
|
|
24
26
|
{
|
|
25
27
|
"name": "none",
|
|
26
28
|
"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.",
|
|
29
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-object-fit-none",
|
|
27
30
|
"type": "value",
|
|
28
31
|
"value": "none"
|
|
29
32
|
},
|
|
30
33
|
{
|
|
31
34
|
"name": "contain",
|
|
32
35
|
"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.",
|
|
36
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-object-fit-contain",
|
|
33
37
|
"type": "value",
|
|
34
38
|
"value": "contain"
|
|
35
39
|
},
|
|
36
40
|
{
|
|
37
41
|
"name": "cover",
|
|
38
42
|
"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.",
|
|
43
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-object-fit-cover",
|
|
39
44
|
"type": "value",
|
|
40
45
|
"value": "cover"
|
|
41
46
|
},
|
|
42
47
|
{
|
|
43
48
|
"name": "scale-down",
|
|
44
49
|
"prose": "Equivalent to contain scale-down.",
|
|
50
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-object-fit-scale-down",
|
|
45
51
|
"type": "value",
|
|
46
52
|
"value": "scale-down"
|
|
47
53
|
}
|
|
@@ -53,6 +59,7 @@
|
|
|
53
59
|
},
|
|
54
60
|
{
|
|
55
61
|
"name": "image-resolution",
|
|
62
|
+
"href": "https://drafts.csswg.org/css-images-4/#propdef-image-resolution",
|
|
56
63
|
"value": "[ from-image || <resolution> ] && snap?",
|
|
57
64
|
"initial": "1dppx",
|
|
58
65
|
"appliesTo": "all elements",
|
|
@@ -65,18 +72,21 @@
|
|
|
65
72
|
{
|
|
66
73
|
"name": "<resolution>",
|
|
67
74
|
"prose": "Specifies the preferred resolution explicitly. A \"dot\" in this case corresponds to a single image pixel.",
|
|
75
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-image-resolution-resolution",
|
|
68
76
|
"type": "value",
|
|
69
77
|
"value": "<resolution>"
|
|
70
78
|
},
|
|
71
79
|
{
|
|
72
80
|
"name": "from-image",
|
|
73
81
|
"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.",
|
|
82
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-image-resolution-from-image",
|
|
74
83
|
"type": "value",
|
|
75
84
|
"value": "from-image"
|
|
76
85
|
},
|
|
77
86
|
{
|
|
78
87
|
"name": "snap",
|
|
79
88
|
"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.",
|
|
89
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-image-resolution-snap",
|
|
80
90
|
"type": "value",
|
|
81
91
|
"value": "snap"
|
|
82
92
|
}
|
|
@@ -92,91 +102,108 @@
|
|
|
92
102
|
"values": [
|
|
93
103
|
{
|
|
94
104
|
"name": "<image>",
|
|
105
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-image",
|
|
95
106
|
"type": "type",
|
|
96
107
|
"value": "<url> | <image()> | <image-set()> | <cross-fade()> | <element()> | <gradient>"
|
|
97
108
|
},
|
|
98
109
|
{
|
|
99
110
|
"name": "image-set()",
|
|
100
111
|
"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.",
|
|
112
|
+
"href": "https://drafts.csswg.org/css-images-4/#funcdef-image-set",
|
|
101
113
|
"type": "function",
|
|
102
114
|
"value": "image-set( <image-set-option># )",
|
|
103
115
|
"values": [
|
|
104
116
|
{
|
|
105
117
|
"name": "type()",
|
|
106
118
|
"value": "type( <string> )",
|
|
119
|
+
"href": "https://drafts.csswg.org/css-images-4/#funcdef-image-set-type",
|
|
107
120
|
"type": "function"
|
|
108
121
|
}
|
|
109
122
|
]
|
|
110
123
|
},
|
|
111
124
|
{
|
|
112
125
|
"name": "<image-set-option>",
|
|
126
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-image-set-option",
|
|
113
127
|
"type": "type",
|
|
114
128
|
"value": "[ <image> | <string> ] [ <resolution> || type(<string>) ]?"
|
|
115
129
|
},
|
|
116
130
|
{
|
|
117
131
|
"name": "image()",
|
|
132
|
+
"href": "https://drafts.csswg.org/css-images-4/#funcdef-image",
|
|
118
133
|
"type": "function",
|
|
119
134
|
"value": "image( <image-tags>? [ <image-src>? , <color>? ]! )"
|
|
120
135
|
},
|
|
121
136
|
{
|
|
122
137
|
"name": "<image-tags>",
|
|
138
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-image-tags",
|
|
123
139
|
"type": "type",
|
|
124
140
|
"value": "[ ltr | rtl ]"
|
|
125
141
|
},
|
|
126
142
|
{
|
|
127
143
|
"name": "<image-src>",
|
|
144
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-image-src",
|
|
128
145
|
"type": "type",
|
|
129
146
|
"value": "[ <url> | <string> ]"
|
|
130
147
|
},
|
|
131
148
|
{
|
|
132
149
|
"name": "cross-fade()",
|
|
150
|
+
"href": "https://drafts.csswg.org/css-images-4/#funcdef-cross-fade",
|
|
133
151
|
"type": "function",
|
|
134
152
|
"value": "cross-fade( <cf-image># )"
|
|
135
153
|
},
|
|
136
154
|
{
|
|
137
155
|
"name": "<cf-image>",
|
|
156
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-cf-image",
|
|
138
157
|
"type": "type",
|
|
139
158
|
"value": "<percentage [0,100]>? && [ <image> | <color> ]"
|
|
140
159
|
},
|
|
141
160
|
{
|
|
142
161
|
"name": "element()",
|
|
162
|
+
"href": "https://drafts.csswg.org/css-images-4/#funcdef-element",
|
|
143
163
|
"type": "function",
|
|
144
164
|
"value": "element( <id-selector> )"
|
|
145
165
|
},
|
|
146
166
|
{
|
|
147
167
|
"name": "<gradient>",
|
|
168
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-gradient",
|
|
148
169
|
"type": "type",
|
|
149
170
|
"value": "[ <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()> | <repeating-conic-gradient()> ]"
|
|
150
171
|
},
|
|
151
172
|
{
|
|
152
173
|
"name": "<linear-gradient-syntax>",
|
|
174
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-linear-gradient-syntax",
|
|
153
175
|
"type": "type",
|
|
154
176
|
"value": "[ [ <angle> | to <side-or-corner> ] || <color-interpolation-method> ]? , <color-stop-list>"
|
|
155
177
|
},
|
|
156
178
|
{
|
|
157
179
|
"name": "<side-or-corner>",
|
|
180
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-side-or-corner",
|
|
158
181
|
"type": "type",
|
|
159
182
|
"value": "[left | right] || [top | bottom]"
|
|
160
183
|
},
|
|
161
184
|
{
|
|
162
185
|
"name": "<radial-gradient-syntax>",
|
|
186
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-radial-gradient-syntax",
|
|
163
187
|
"type": "type",
|
|
164
188
|
"value": "[ [ [ <radial-shape> || <radial-size> ]? [ at <position> ]? ] || <color-interpolation-method>]? , <color-stop-list>"
|
|
165
189
|
},
|
|
166
190
|
{
|
|
167
191
|
"name": "conic-gradient()",
|
|
192
|
+
"href": "https://drafts.csswg.org/css-images-4/#funcdef-conic-gradient",
|
|
168
193
|
"type": "function",
|
|
169
194
|
"value": "conic-gradient( [ <conic-gradient-syntax> ] )",
|
|
170
195
|
"values": [
|
|
171
196
|
{
|
|
172
197
|
"name": "<angle>",
|
|
173
198
|
"prose": "The entire gradient is rotated by this angle. If omitted, defaults to 0deg. The unit identifier may be omitted if the <angle> is zero.",
|
|
199
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-conic-gradient-angle",
|
|
174
200
|
"type": "value",
|
|
175
201
|
"value": "<angle>"
|
|
176
202
|
},
|
|
177
203
|
{
|
|
178
204
|
"name": "<position>",
|
|
179
205
|
"prose": "Determines the gradient center of the gradient. The <position> value type (which is also used for background-position) is defined in [CSS-VALUES-3], and is resolved using the center-point as the object area and the gradient box as the positioning area. If this argument is omitted, it defaults to center.",
|
|
206
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-conic-gradient-position",
|
|
180
207
|
"type": "value",
|
|
181
208
|
"value": "<position>"
|
|
182
209
|
}
|
|
@@ -184,36 +211,42 @@
|
|
|
184
211
|
},
|
|
185
212
|
{
|
|
186
213
|
"name": "<conic-gradient-syntax>",
|
|
214
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-conic-gradient-syntax",
|
|
187
215
|
"type": "type",
|
|
188
216
|
"value": "[ [ [ from <angle> ]? [ at <position> ]? ] || <color-interpolation-method> ]? , <angular-color-stop-list>"
|
|
189
217
|
},
|
|
190
218
|
{
|
|
191
219
|
"name": "repeating-linear-gradient()",
|
|
192
220
|
"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.",
|
|
221
|
+
"href": "https://drafts.csswg.org/css-images-4/#funcdef-repeating-linear-gradient",
|
|
193
222
|
"type": "function",
|
|
194
223
|
"value": "repeating-linear-gradient( [ <linear-gradient-syntax> ] )"
|
|
195
224
|
},
|
|
196
225
|
{
|
|
197
226
|
"name": "repeating-radial-gradient()",
|
|
198
227
|
"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.",
|
|
228
|
+
"href": "https://drafts.csswg.org/css-images-4/#funcdef-repeating-radial-gradient",
|
|
199
229
|
"type": "function",
|
|
200
230
|
"value": "repeating-radial-gradient( [ <radial-gradient-syntax> ] )"
|
|
201
231
|
},
|
|
202
232
|
{
|
|
203
233
|
"name": "repeating-conic-gradient()",
|
|
204
234
|
"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.",
|
|
235
|
+
"href": "https://drafts.csswg.org/css-images-4/#funcdef-repeating-conic-gradient",
|
|
205
236
|
"type": "function",
|
|
206
237
|
"value": "repeating-conic-gradient( [ <conic-gradient-syntax> ] )",
|
|
207
238
|
"values": [
|
|
208
239
|
{
|
|
209
240
|
"name": "<angle>",
|
|
210
241
|
"prose": "The entire gradient is rotated by this angle. If omitted, defaults to 0deg. The unit identifier may be omitted if the <angle> is zero.",
|
|
242
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-conic-gradient-angle",
|
|
211
243
|
"type": "value",
|
|
212
244
|
"value": "<angle>"
|
|
213
245
|
},
|
|
214
246
|
{
|
|
215
247
|
"name": "<position>",
|
|
216
248
|
"prose": "Determines the gradient center of the gradient. The <position> value type (which is also used for background-position) is defined in [CSS-VALUES-3], and is resolved using the center-point as the object area and the gradient box as the positioning area. If this argument is omitted, it defaults to center.",
|
|
249
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-conic-gradient-position",
|
|
217
250
|
"type": "value",
|
|
218
251
|
"value": "<position>"
|
|
219
252
|
}
|
|
@@ -221,76 +254,90 @@
|
|
|
221
254
|
},
|
|
222
255
|
{
|
|
223
256
|
"name": "<color-stop-list>",
|
|
257
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-color-stop-list",
|
|
224
258
|
"type": "type",
|
|
225
259
|
"value": "<linear-color-stop> , [ <linear-color-hint>? , <linear-color-stop> ]#"
|
|
226
260
|
},
|
|
227
261
|
{
|
|
228
262
|
"name": "<linear-color-stop>",
|
|
263
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-linear-color-stop",
|
|
229
264
|
"type": "type",
|
|
230
265
|
"value": "<color> <color-stop-length>?"
|
|
231
266
|
},
|
|
232
267
|
{
|
|
233
268
|
"name": "<linear-color-hint>",
|
|
269
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-linear-color-hint",
|
|
234
270
|
"type": "type",
|
|
235
271
|
"value": "<length-percentage>"
|
|
236
272
|
},
|
|
237
273
|
{
|
|
238
274
|
"name": "<color-stop-length>",
|
|
275
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-color-stop-length",
|
|
239
276
|
"type": "type",
|
|
240
277
|
"value": "<length-percentage>{1,2}"
|
|
241
278
|
},
|
|
242
279
|
{
|
|
243
280
|
"name": "<angular-color-stop-list>",
|
|
281
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-angular-color-stop-list",
|
|
244
282
|
"type": "type",
|
|
245
283
|
"value": "<angular-color-stop> , [ <angular-color-hint>? , <angular-color-stop> ]#"
|
|
246
284
|
},
|
|
247
285
|
{
|
|
248
286
|
"name": "<angular-color-stop>",
|
|
287
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-angular-color-stop",
|
|
249
288
|
"type": "type",
|
|
250
289
|
"value": "<color> <color-stop-angle>?"
|
|
251
290
|
},
|
|
252
291
|
{
|
|
253
292
|
"name": "<angular-color-hint>",
|
|
293
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-angular-color-hint",
|
|
254
294
|
"type": "type",
|
|
255
295
|
"value": "<angle-percentage>"
|
|
256
296
|
},
|
|
257
297
|
{
|
|
258
298
|
"name": "<color-stop-angle>",
|
|
299
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-color-stop-angle",
|
|
259
300
|
"type": "type",
|
|
260
301
|
"value": "<angle-percentage>{1,2}"
|
|
261
302
|
},
|
|
262
303
|
{
|
|
263
304
|
"name": "<color-stop>",
|
|
305
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-color-stop",
|
|
264
306
|
"type": "type",
|
|
265
307
|
"value": "<color-stop-length> | <color-stop-angle>"
|
|
266
308
|
},
|
|
267
309
|
{
|
|
268
310
|
"name": "<image-1D>",
|
|
269
311
|
"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:",
|
|
312
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-image-1d",
|
|
270
313
|
"type": "type",
|
|
271
314
|
"value": "<stripes()>"
|
|
272
315
|
},
|
|
273
316
|
{
|
|
274
317
|
"name": "stripes()",
|
|
275
318
|
"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.",
|
|
319
|
+
"href": "https://drafts.csswg.org/css-images-4/#funcdef-stripes",
|
|
276
320
|
"type": "function",
|
|
277
321
|
"value": "stripes( <color-stripe># )",
|
|
278
322
|
"values": [
|
|
279
323
|
{
|
|
280
324
|
"name": "<percentage [0,100]>",
|
|
281
325
|
"prose": "Percentage thicknesses are relative to the total width. Only values between 0% and 100% (inclusive) are valid.",
|
|
326
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-stripes-percentage-0-100",
|
|
282
327
|
"type": "value",
|
|
283
328
|
"value": "<percentage [0,100]>"
|
|
284
329
|
},
|
|
285
330
|
{
|
|
286
331
|
"name": "<length [0,∞]>",
|
|
287
332
|
"prose": "Negative length values are invalid.",
|
|
333
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-stripes-length-0",
|
|
288
334
|
"type": "value",
|
|
289
335
|
"value": "<length [0,∞]>"
|
|
290
336
|
},
|
|
291
337
|
{
|
|
292
338
|
"name": "<flex>",
|
|
293
339
|
"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.",
|
|
340
|
+
"href": "https://drafts.csswg.org/css-images-4/#valdef-stripes-flex",
|
|
294
341
|
"type": "value",
|
|
295
342
|
"value": "<flex>"
|
|
296
343
|
}
|
|
@@ -299,12 +346,14 @@
|
|
|
299
346
|
{
|
|
300
347
|
"name": "<color-stripe>",
|
|
301
348
|
"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 interpreted as follows:",
|
|
349
|
+
"href": "https://drafts.csswg.org/css-images-4/#typedef-color-stripe",
|
|
302
350
|
"type": "type",
|
|
303
351
|
"value": "<color> && [ <length-percentage> | <flex> ]?"
|
|
304
352
|
},
|
|
305
353
|
{
|
|
306
354
|
"name": "-webkit-image-set()",
|
|
307
355
|
"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.)",
|
|
356
|
+
"href": "https://drafts.csswg.org/css-images-4/#funcdef--webkit-image-set",
|
|
308
357
|
"type": "function"
|
|
309
358
|
}
|
|
310
359
|
],
|
package/css-images-5.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"properties": [
|
|
7
7
|
{
|
|
8
8
|
"name": "object-view-box",
|
|
9
|
+
"href": "https://drafts.csswg.org/css-images-5/#propdef-object-view-box",
|
|
9
10
|
"value": "none | <basic-shape-rect>",
|
|
10
11
|
"initial": "none",
|
|
11
12
|
"appliesTo": "replaced elements",
|
|
@@ -18,12 +19,14 @@
|
|
|
18
19
|
{
|
|
19
20
|
"name": "none",
|
|
20
21
|
"prose": "The element does not have a view box.",
|
|
22
|
+
"href": "https://drafts.csswg.org/css-images-5/#valdef-object-view-box-none",
|
|
21
23
|
"type": "value",
|
|
22
24
|
"value": "none"
|
|
23
25
|
},
|
|
24
26
|
{
|
|
25
27
|
"name": "<basic-shape-rect>",
|
|
26
28
|
"prose": "If the element does not have both a natural width and a natural height, this value has no effect, similar to none. Otherwise, specifies a view box for the element. First, resolve the <basic-shape-rect> against a reference box formed by the element’s natural sizes to obtain the element’s view box. For all purposes, the element is now treated as having natural sizes equal to the view box’s width and height. If the element had a natural aspect ratio, it’s now treated as instead having the same ratio as the view box. Further adjustments to the size/position of the element’s contents, such as object-position or object-fit, are similarly performed on the view box instead. When the element is painted, its contents are scaled and translated such that the element’s contents retain the same position and size, relative to the view box’s final size and position, that they had when the view box was determined (above). Have not yet defined what happens if the view box is zero-area. It’s an error case, so precise behavior isn’t important; just need to see what impls want to do about it.",
|
|
29
|
+
"href": "https://drafts.csswg.org/css-images-5/#valdef-object-view-box-basic-shape-rect",
|
|
27
30
|
"type": "value",
|
|
28
31
|
"value": "<basic-shape-rect>"
|
|
29
32
|
}
|