@webref/css 6.23.0 → 7.0.1-alpha

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.
Files changed (122) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +37 -22
  3. package/css.json +17754 -0
  4. package/index.js +2 -9
  5. package/package.json +1 -1
  6. package/CSS.json +0 -567
  7. package/SVG.json +0 -387
  8. package/compat.json +0 -784
  9. package/compositing.json +0 -178
  10. package/css-align.json +0 -559
  11. package/css-anchor-position.json +0 -1042
  12. package/css-animations-2.json +0 -377
  13. package/css-animations.json +0 -337
  14. package/css-backgrounds-4.json +0 -402
  15. package/css-backgrounds.json +0 -732
  16. package/css-borders.json +0 -1642
  17. package/css-box.json +0 -484
  18. package/css-break.json +0 -444
  19. package/css-cascade-6.json +0 -31
  20. package/css-cascade.json +0 -91
  21. package/css-color-5.json +0 -527
  22. package/css-color-6.json +0 -60
  23. package/css-color-adjust.json +0 -151
  24. package/css-color-hdr.json +0 -183
  25. package/css-color.json +0 -1759
  26. package/css-conditional-4.json +0 -23
  27. package/css-conditional-5.json +0 -505
  28. package/css-conditional.json +0 -50
  29. package/css-contain.json +0 -123
  30. package/css-content.json +0 -466
  31. package/css-counter-styles.json +0 -613
  32. package/css-display.json +0 -444
  33. package/css-easing.json +0 -149
  34. package/css-env.json +0 -109
  35. package/css-exclusions.json +0 -108
  36. package/css-extensions.json +0 -36
  37. package/css-flexbox.json +0 -259
  38. package/css-fonts-5.json +0 -385
  39. package/css-fonts.json +0 -1754
  40. package/css-forms.json +0 -281
  41. package/css-gaps.json +0 -544
  42. package/css-gcpm-4.json +0 -58
  43. package/css-gcpm.json +0 -138
  44. package/css-grid-3.json +0 -335
  45. package/css-grid.json +0 -824
  46. package/css-images-4.json +0 -367
  47. package/css-images-5.json +0 -43
  48. package/css-images.json +0 -373
  49. package/css-inline.json +0 -903
  50. package/css-layout-api.json +0 -21
  51. package/css-line-grid.json +0 -142
  52. package/css-link-params.json +0 -34
  53. package/css-lists.json +0 -337
  54. package/css-logical.json +0 -396
  55. package/css-masking.json +0 -717
  56. package/css-mixins.json +0 -58
  57. package/css-multicol.json +0 -253
  58. package/css-namespaces.json +0 -25
  59. package/css-nav.json +0 -121
  60. package/css-nesting.json +0 -17
  61. package/css-overflow-4.json +0 -428
  62. package/css-overflow-5.json +0 -226
  63. package/css-overflow.json +0 -379
  64. package/css-overscroll.json +0 -215
  65. package/css-page-floats.json +0 -296
  66. package/css-page.json +0 -382
  67. package/css-paint-api.json +0 -17
  68. package/css-position-4.json +0 -49
  69. package/css-position.json +0 -495
  70. package/css-properties-values-api.json +0 -39
  71. package/css-pseudo.json +0 -98
  72. package/css-regions.json +0 -59
  73. package/css-rhythm.json +0 -181
  74. package/css-round-display.json +0 -85
  75. package/css-ruby.json +0 -221
  76. package/css-scoping.json +0 -38
  77. package/css-scroll-anchoring.json +0 -43
  78. package/css-scroll-snap-2.json +0 -74
  79. package/css-scroll-snap.json +0 -643
  80. package/css-scrollbars.json +0 -82
  81. package/css-shadow-parts.json +0 -17
  82. package/css-shapes-2.json +0 -89
  83. package/css-shapes.json +0 -384
  84. package/css-size-adjust.json +0 -50
  85. package/css-sizing-4.json +0 -601
  86. package/css-sizing.json +0 -427
  87. package/css-speech.json +0 -985
  88. package/css-syntax.json +0 -263
  89. package/css-tables.json +0 -91
  90. package/css-text-4.json +0 -1516
  91. package/css-text-decor-4.json +0 -741
  92. package/css-text-decor.json +0 -337
  93. package/css-text.json +0 -670
  94. package/css-transforms-2.json +0 -329
  95. package/css-transforms.json +0 -213
  96. package/css-transitions-2.json +0 -47
  97. package/css-transitions.json +0 -119
  98. package/css-ui.json +0 -818
  99. package/css-values-5.json +0 -854
  100. package/css-values.json +0 -790
  101. package/css-variables.json +0 -29
  102. package/css-view-transitions-2.json +0 -152
  103. package/css-view-transitions.json +0 -77
  104. package/css-viewport.json +0 -43
  105. package/css-will-change.json +0 -64
  106. package/css-writing-modes.json +0 -256
  107. package/fill-stroke.json +0 -755
  108. package/filter-effects-2.json +0 -28
  109. package/filter-effects.json +0 -220
  110. package/html.json +0 -29
  111. package/mathml-core.json +0 -69
  112. package/mediaqueries-5.json +0 -915
  113. package/mediaqueries.json +0 -549
  114. package/motion.json +0 -303
  115. package/pointer-animations.json +0 -282
  116. package/scroll-animations.json +0 -519
  117. package/selectors-5.json +0 -22
  118. package/selectors.json +0 -604
  119. package/svg-strokes.json +0 -59
  120. package/upgrade-insecure-requests.json +0 -28
  121. package/webvtt.json +0 -33
  122. package/webxr-dom-overlays.json +0 -17
@@ -1,732 +0,0 @@
1
- {
2
- "spec": {
3
- "title": "CSS Backgrounds and Borders Module Level 3",
4
- "url": "https://drafts.csswg.org/css-backgrounds-3/"
5
- },
6
- "properties": [
7
- {
8
- "name": "background-color",
9
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-color",
10
- "value": "<color>",
11
- "initial": "transparent",
12
- "appliesTo": "all elements",
13
- "inherited": "no",
14
- "percentages": "N/A",
15
- "computedValue": "computed color",
16
- "canonicalOrder": "per grammar",
17
- "animationType": "by computed value",
18
- "styleDeclaration": [
19
- "background-color",
20
- "backgroundColor"
21
- ]
22
- },
23
- {
24
- "name": "background-image",
25
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-image",
26
- "value": "<bg-image>#",
27
- "initial": "none",
28
- "appliesTo": "all elements",
29
- "inherited": "no",
30
- "percentages": "N/A",
31
- "computedValue": "list, each item either an <image> or the keyword none",
32
- "canonicalOrder": "per grammar",
33
- "animationType": "discrete",
34
- "values": [
35
- {
36
- "name": "none",
37
- "prose": "A value of none counts as a background image layer but draws nothing. An image that is empty (zero width or zero height), that fails to download, or that cannot be displayed (e.g., because it is not in a supported image format) likewise counts as a layer but draws nothing.",
38
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-image-none",
39
- "type": "value",
40
- "value": "none"
41
- }
42
- ],
43
- "styleDeclaration": [
44
- "background-image",
45
- "backgroundImage"
46
- ]
47
- },
48
- {
49
- "name": "background-repeat",
50
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-repeat",
51
- "value": "<repeat-style>#",
52
- "initial": "repeat",
53
- "appliesTo": "all elements",
54
- "inherited": "no",
55
- "percentages": "N/A",
56
- "computedValue": "list, each item a pair of keywords, one per dimension",
57
- "canonicalOrder": "per grammar",
58
- "animationType": "discrete",
59
- "values": [
60
- {
61
- "name": "repeat-x",
62
- "prose": "Computes to repeat no-repeat.",
63
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-repeat-repeat-x",
64
- "type": "value",
65
- "value": "repeat-x"
66
- },
67
- {
68
- "name": "repeat-y",
69
- "prose": "Computes to no-repeat repeat.",
70
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-repeat-repeat-y",
71
- "type": "value",
72
- "value": "repeat-y"
73
- },
74
- {
75
- "name": "repeat",
76
- "prose": "The image is repeated in this direction as often as needed to cover the background painting area.",
77
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-repeat-repeat",
78
- "type": "value",
79
- "value": "repeat"
80
- },
81
- {
82
- "name": "space",
83
- "prose": "The image is repeated as often as will fit within the background positioning area without being clipped, and then the images are spaced out to fill the area. The first and last images touch the edges of the area. If the background painting area is larger than the background positioning area, then the pattern repeats to fill the background painting area. The value of background-position for this direction is ignored unless there is not enough space for two copies of the image in this axis, in which case only one image is placed, and background-position determines its position in this axis.",
84
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-repeat-space",
85
- "type": "value",
86
- "value": "space"
87
- },
88
- {
89
- "name": "round",
90
- "prose": "The image is repeated as often as will fit within the background positioning area. If it doesn’t fit a whole number of times, it is rescaled so that it does. See the formula under background-size. If the background painting area is larger than the background positioning area, then the pattern repeats to fill the background painting area.",
91
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-repeat-round",
92
- "type": "value",
93
- "value": "round"
94
- },
95
- {
96
- "name": "no-repeat",
97
- "prose": "The image is placed once and not repeated in this direction.",
98
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-repeat-no-repeat",
99
- "type": "value",
100
- "value": "no-repeat"
101
- }
102
- ],
103
- "styleDeclaration": [
104
- "background-repeat",
105
- "backgroundRepeat"
106
- ]
107
- },
108
- {
109
- "name": "background-attachment",
110
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-attachment",
111
- "value": "<attachment>#",
112
- "initial": "scroll",
113
- "appliesTo": "all elements",
114
- "inherited": "no",
115
- "percentages": "N/A",
116
- "computedValue": "list, each item the keyword as specified",
117
- "canonicalOrder": "per grammar",
118
- "animationType": "discrete",
119
- "values": [
120
- {
121
- "name": "fixed",
122
- "prose": "The background is fixed with regard to the viewport. In paged media where there is no viewport, a fixed background is fixed with respect to the page box and therefore replicated on every page.",
123
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-attachment-fixed",
124
- "type": "value",
125
- "value": "fixed"
126
- },
127
- {
128
- "name": "local",
129
- "prose": "The background is fixed with regard to the box’s contents: if the box has a scrolling mechanism, the background scrolls with the box’s contents, and the background painting area and background positioning area are relative to the scrollable overflow area of the box rather than to the border framing them. Because the scrollable overflow area does not include the border area, for scroll containers the border-box value of background-clip may be treated the same as padding-box.",
130
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-attachment-local",
131
- "type": "value",
132
- "value": "local"
133
- },
134
- {
135
- "name": "scroll",
136
- "prose": "The background is fixed with regard to the box itself and does not scroll with its contents. (It is effectively attached to the box’s border.)",
137
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-attachment-scroll",
138
- "type": "value",
139
- "value": "scroll"
140
- }
141
- ],
142
- "styleDeclaration": [
143
- "background-attachment",
144
- "backgroundAttachment"
145
- ]
146
- },
147
- {
148
- "name": "background-position",
149
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-position",
150
- "value": "<bg-position>#",
151
- "initial": "0% 0%",
152
- "appliesTo": "all elements",
153
- "inherited": "no",
154
- "percentages": "refer to size of background positioning area minus size of background image; see text",
155
- "computedValue": "list, each item a pair of offsets (horizontal and vertical) from the top left origin each given as a computed <length-percentage> value",
156
- "canonicalOrder": "per grammar",
157
- "animationType": "repeatable list",
158
- "values": [
159
- {
160
- "name": "<percentage>",
161
- "prose": "A percentage for the horizontal offset is relative to (width of background positioning area - width of background image). A percentage for the vertical offset is relative to (height of background positioning area - height of background image), where the size of the image is the size given by background-size. For example, with a value pair of 0% 0%, the upper left corner of the image is aligned with the upper left corner of, usually, the box’s padding edge. A value pair of 100% 100% places the lower right corner of the image in the lower right corner of the area. With a value pair of 75% 50%, the point 75% across and 50% down the image is to be placed at the point 75% across and 50% down the area. Diagram of the meaning of background-position: 75% 50%.",
162
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-percentage",
163
- "type": "value",
164
- "value": "<percentage>"
165
- },
166
- {
167
- "name": "<length>",
168
- "prose": "A length value gives a fixed length as the offset. For example, with a value pair of 2cm 1cm, the upper left corner of the image is placed 2cm to the right and 1cm below the upper left corner of the background positioning area.",
169
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-length",
170
- "type": "value",
171
- "value": "<length>"
172
- },
173
- {
174
- "name": "top",
175
- "prose": "Computes to 0% for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset.",
176
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-top",
177
- "type": "value",
178
- "value": "top"
179
- },
180
- {
181
- "name": "right",
182
- "prose": "Computes to 100% for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",
183
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-right",
184
- "type": "value",
185
- "value": "right"
186
- },
187
- {
188
- "name": "bottom",
189
- "prose": "Computes to 100% for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",
190
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-bottom",
191
- "type": "value",
192
- "value": "bottom"
193
- },
194
- {
195
- "name": "left",
196
- "prose": "Computes to 0% for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",
197
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-left",
198
- "type": "value",
199
- "value": "left"
200
- },
201
- {
202
- "name": "center",
203
- "prose": "Computes to 50% (left 50%) for the horizontal position if the horizontal position is not otherwise specified, or 50% (top 50%) for the vertical position if it is.",
204
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-center",
205
- "type": "value",
206
- "value": "center"
207
- }
208
- ],
209
- "styleDeclaration": [
210
- "background-position",
211
- "backgroundPosition"
212
- ]
213
- },
214
- {
215
- "name": "background-clip",
216
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-clip",
217
- "value": "<visual-box>#",
218
- "initial": "border-box",
219
- "appliesTo": "all elements",
220
- "inherited": "no",
221
- "percentages": "N/A",
222
- "computedValue": "list, each item a keyword as specified",
223
- "canonicalOrder": "per grammar",
224
- "animationType": "repeatable list",
225
- "values": [
226
- {
227
- "name": "border-box",
228
- "prose": "The background is painted within (clipped to) the border box.",
229
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-clip-border-box",
230
- "type": "value",
231
- "value": "border-box"
232
- },
233
- {
234
- "name": "padding-box",
235
- "prose": "The background is painted within (clipped to) the padding box.",
236
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-clip-padding-box",
237
- "type": "value",
238
- "value": "padding-box"
239
- },
240
- {
241
- "name": "content-box",
242
- "prose": "The background is painted within (clipped to) the content box.",
243
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-clip-content-box",
244
- "type": "value",
245
- "value": "content-box"
246
- }
247
- ],
248
- "styleDeclaration": [
249
- "background-clip",
250
- "backgroundClip"
251
- ]
252
- },
253
- {
254
- "name": "background-origin",
255
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-origin",
256
- "value": "<visual-box>#",
257
- "initial": "padding-box",
258
- "appliesTo": "all elements",
259
- "inherited": "no",
260
- "percentages": "N/A",
261
- "computedValue": "list, each item a keyword as specified",
262
- "canonicalOrder": "per grammar",
263
- "animationType": "repeatable list",
264
- "values": [
265
- {
266
- "name": "padding-box",
267
- "prose": "The position is relative to the padding box. (For single boxes 0 0 is the upper left corner of the padding edge, 100% 100% is the lower right corner.)",
268
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-origin-padding-box",
269
- "type": "value",
270
- "value": "padding-box"
271
- },
272
- {
273
- "name": "border-box",
274
- "prose": "The position is relative to the border box.",
275
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-origin-border-box",
276
- "type": "value",
277
- "value": "border-box"
278
- },
279
- {
280
- "name": "content-box",
281
- "prose": "The position is relative to the content box.",
282
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-origin-content-box",
283
- "type": "value",
284
- "value": "content-box"
285
- }
286
- ],
287
- "styleDeclaration": [
288
- "background-origin",
289
- "backgroundOrigin"
290
- ]
291
- },
292
- {
293
- "name": "background-size",
294
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-size",
295
- "value": "<bg-size>#",
296
- "initial": "auto",
297
- "appliesTo": "all elements",
298
- "inherited": "no",
299
- "percentages": "see text",
300
- "computedValue": "list, each item a pair of sizes (one per axis) each represented as either a keyword or a computed <length-percentage> value",
301
- "canonicalOrder": "per grammar",
302
- "animationType": "repeatable list",
303
- "values": [
304
- {
305
- "name": "contain",
306
- "prose": "Scale the image, while preserving its natural aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area.",
307
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-size-contain",
308
- "type": "value",
309
- "value": "contain"
310
- },
311
- {
312
- "name": "cover",
313
- "prose": "Scale the image, while preserving its natural aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area.",
314
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-size-cover",
315
- "type": "value",
316
- "value": "cover"
317
- },
318
- {
319
- "name": "<length-percentage [0,∞]>",
320
- "prose": "The first value gives the width of the corresponding image, the second value its height. If only one value is given the second is assumed to be auto. A <percentage> is relative to the background positioning area. An auto value for one dimension is resolved by using the image’s natural aspect ratio and the size of the other dimension, or failing that, using the image’s natural size, or failing that, treating it as 100%. If both values are auto then the natural width and/or height of the image should be used, if any, the missing dimension (if any) behaving as auto as described above. If the image has neither natural size, its size is determined as for contain. Negative values are invalid.",
321
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-size-length-percentage-0",
322
- "type": "value",
323
- "value": "<length-percentage [0,∞]>"
324
- },
325
- {
326
- "name": "auto",
327
- "prose": "The first value gives the width of the corresponding image, the second value its height. If only one value is given the second is assumed to be auto. A <percentage> is relative to the background positioning area. An auto value for one dimension is resolved by using the image’s natural aspect ratio and the size of the other dimension, or failing that, using the image’s natural size, or failing that, treating it as 100%. If both values are auto then the natural width and/or height of the image should be used, if any, the missing dimension (if any) behaving as auto as described above. If the image has neither natural size, its size is determined as for contain. Negative values are invalid.",
328
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-size-auto",
329
- "type": "value",
330
- "value": "auto"
331
- }
332
- ],
333
- "styleDeclaration": [
334
- "background-size",
335
- "backgroundSize"
336
- ]
337
- },
338
- {
339
- "name": "background",
340
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background",
341
- "value": "<bg-layer>#? , <final-bg-layer>",
342
- "initial": "see individual properties",
343
- "appliesTo": "all elements",
344
- "inherited": "no",
345
- "percentages": "see individual properties",
346
- "computedValue": "see individual properties",
347
- "canonicalOrder": "per grammar",
348
- "animationType": "see individual properties",
349
- "styleDeclaration": [
350
- "background"
351
- ]
352
- },
353
- {
354
- "name": "border-style",
355
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-style",
356
- "value": "<line-style>{1,4}",
357
- "initial": "see individual properties",
358
- "appliesTo": "all elements except ruby base containers and ruby annotation containers",
359
- "inherited": "no",
360
- "percentages": "N/A",
361
- "computedValue": "see individual properties",
362
- "canonicalOrder": "per grammar",
363
- "animationType": "see individual properties",
364
- "styleDeclaration": [
365
- "border-style",
366
- "borderStyle"
367
- ]
368
- },
369
- {
370
- "name": "border-width",
371
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-width",
372
- "value": "<line-width>{1,4}",
373
- "initial": "see individual properties",
374
- "appliesTo": "all elements except ruby base containers and ruby annotation containers",
375
- "inherited": "no",
376
- "percentages": "see individual properties",
377
- "computedValue": "see individual properties",
378
- "canonicalOrder": "per grammar",
379
- "animationType": "see individual properties",
380
- "styleDeclaration": [
381
- "border-width",
382
- "borderWidth"
383
- ]
384
- },
385
- {
386
- "name": "border",
387
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border",
388
- "value": "<line-width> || <line-style> || <color>",
389
- "initial": "See individual properties",
390
- "appliesTo": "all elements except ruby base containers and ruby annotation containers",
391
- "inherited": "no",
392
- "percentages": "N/A",
393
- "computedValue": "see individual properties",
394
- "canonicalOrder": "per grammar",
395
- "animationType": "see individual properties",
396
- "styleDeclaration": [
397
- "border"
398
- ]
399
- },
400
- {
401
- "name": "border-image-source",
402
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-image-source",
403
- "value": "none | <image>",
404
- "initial": "none",
405
- "appliesTo": "All elements, except internal table elements when border-collapse is collapse",
406
- "inherited": "no",
407
- "percentages": "N/A",
408
- "computedValue": "the keyword none or the computed <image>",
409
- "canonicalOrder": "per grammar",
410
- "animationType": "discrete",
411
- "styleDeclaration": [
412
- "border-image-source",
413
- "borderImageSource"
414
- ]
415
- },
416
- {
417
- "name": "border-image-slice",
418
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-image-slice",
419
- "value": "[<number [0,∞]> | <percentage [0,∞]>]{1,4} && fill?",
420
- "initial": "100%",
421
- "appliesTo": "All elements, except internal table elements when border-collapse is collapse",
422
- "inherited": "no",
423
- "percentages": "refer to size of the border image",
424
- "computedValue": "four values, each either a number or percentage; plus a fill keyword if specified",
425
- "canonicalOrder": "per grammar",
426
- "animationType": "by computed value",
427
- "values": [
428
- {
429
- "name": "<percentage [0,∞]>",
430
- "prose": "Percentages are relative to the size of the image: the width of the image for the horizontal offsets, the height for vertical offsets.",
431
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-slice-percentage-0",
432
- "type": "value",
433
- "value": "<percentage [0,∞]>"
434
- },
435
- {
436
- "name": "<number [0,∞]>",
437
- "prose": "Numbers represent pixels in the image (if the image is a raster image) or vector coordinates (if the image is a vector image).",
438
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-slice-number-0",
439
- "type": "value",
440
- "value": "<number [0,∞]>"
441
- },
442
- {
443
- "name": "fill",
444
- "prose": "The fill keyword, if present, causes the middle part of the border-image to be preserved. (By default it is discarded, i.e., treated as empty.)",
445
- "href": "https://drafts.csswg.org/css-backgrounds-3/#border-image-slice-fill",
446
- "type": "value",
447
- "value": "fill"
448
- }
449
- ],
450
- "styleDeclaration": [
451
- "border-image-slice",
452
- "borderImageSlice"
453
- ]
454
- },
455
- {
456
- "name": "border-image-width",
457
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-image-width",
458
- "value": "[ <length-percentage [0,∞]> | <number [0,∞]> | auto ]{1,4}",
459
- "initial": "1",
460
- "appliesTo": "All elements, except internal table elements when border-collapse is collapse",
461
- "inherited": "no",
462
- "percentages": "Relative to width/height of the border image area",
463
- "computedValue": "four values, each either a number, the keyword auto, or a computed <length-percentage> value",
464
- "canonicalOrder": "per grammar",
465
- "animationType": "by computed value",
466
- "values": [
467
- {
468
- "name": "<length-percentage [0,∞]>",
469
- "prose": "Percentages refer to the size of the border image area: the width of the area for horizontal offsets, the height for vertical offsets.",
470
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-width-length-percentage-0",
471
- "type": "value",
472
- "value": "<length-percentage [0,∞]>"
473
- },
474
- {
475
- "name": "<number [0,∞]>",
476
- "prose": "Numbers represent multiples of the corresponding computed border-width.",
477
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-width-number-0",
478
- "type": "value",
479
- "value": "<number [0,∞]>"
480
- },
481
- {
482
- "name": "auto",
483
- "prose": "If auto is specified then the used border-image-width is the natural width or height (whichever is applicable) of the corresponding image slice (see border-image-slice). If the image does not have the required natural dimension then the corresponding computed border-width is used instead.",
484
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-width-auto",
485
- "type": "value",
486
- "value": "auto"
487
- }
488
- ],
489
- "styleDeclaration": [
490
- "border-image-width",
491
- "borderImageWidth"
492
- ]
493
- },
494
- {
495
- "name": "border-image-outset",
496
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-image-outset",
497
- "value": "[ <length [0,∞]> | <number [0,∞]> ]{1,4}",
498
- "initial": "0",
499
- "appliesTo": "All elements, except internal table elements when border-collapse is collapse",
500
- "inherited": "no",
501
- "percentages": "N/A",
502
- "computedValue": "four values, each a number or absolute length",
503
- "canonicalOrder": "per grammar",
504
- "animationType": "by computed value",
505
- "styleDeclaration": [
506
- "border-image-outset",
507
- "borderImageOutset"
508
- ]
509
- },
510
- {
511
- "name": "border-image-repeat",
512
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-image-repeat",
513
- "value": "[ stretch | repeat | round | space ]{1,2}",
514
- "initial": "stretch",
515
- "appliesTo": "All elements, except internal table elements when border-collapse is collapse",
516
- "inherited": "no",
517
- "percentages": "N/A",
518
- "computedValue": "two keywords, one per axis",
519
- "canonicalOrder": "per grammar",
520
- "animationType": "discrete",
521
- "values": [
522
- {
523
- "name": "stretch",
524
- "prose": "The image is stretched to fill its corresponding region.",
525
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-repeat-stretch",
526
- "type": "value",
527
- "value": "stretch"
528
- },
529
- {
530
- "name": "repeat",
531
- "prose": "The image is tiled (repeated) to fill its corresponding region.",
532
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-repeat-repeat",
533
- "type": "value",
534
- "value": "repeat"
535
- },
536
- {
537
- "name": "round",
538
- "prose": "The image is tiled (repeated) to fill its corresponding region. If it does not fill the area with a whole number of tiles, the image is rescaled so that it does.",
539
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-repeat-round",
540
- "type": "value",
541
- "value": "round"
542
- },
543
- {
544
- "name": "space",
545
- "prose": "The image is tiled (repeated) to fill its corresponding region. If it does not fill the region with a whole number of tiles, the extra space is distributed around the tiles.",
546
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-repeat-space",
547
- "type": "value",
548
- "value": "space"
549
- }
550
- ],
551
- "styleDeclaration": [
552
- "border-image-repeat",
553
- "borderImageRepeat"
554
- ]
555
- },
556
- {
557
- "name": "border-image",
558
- "href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-image",
559
- "value": "<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>",
560
- "initial": "See individual properties",
561
- "appliesTo": "See individual properties",
562
- "inherited": "no",
563
- "percentages": "N/A",
564
- "computedValue": "See individual properties",
565
- "canonicalOrder": "per grammar",
566
- "animationType": "See individual properties",
567
- "styleDeclaration": [
568
- "border-image",
569
- "borderImage"
570
- ]
571
- }
572
- ],
573
- "atrules": [],
574
- "selectors": [],
575
- "values": [
576
- {
577
- "name": "<bg-image>",
578
- "href": "https://drafts.csswg.org/css-backgrounds-3/#typedef-bg-image",
579
- "type": "type",
580
- "value": "<image> | none"
581
- },
582
- {
583
- "name": "<repeat-style>",
584
- "href": "https://drafts.csswg.org/css-backgrounds-3/#typedef-repeat-style",
585
- "type": "type",
586
- "value": "repeat-x | repeat-y | [repeat | space | round | no-repeat]{1,2}"
587
- },
588
- {
589
- "name": "<attachment>",
590
- "href": "https://drafts.csswg.org/css-backgrounds-3/#typedef-attachment",
591
- "type": "type",
592
- "value": "scroll | fixed | local"
593
- },
594
- {
595
- "name": "<bg-position>",
596
- "href": "https://drafts.csswg.org/css-backgrounds-3/#typedef-bg-position",
597
- "type": "type",
598
- "value": "[ [ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] | [ center | [ left | right ] <length-percentage>? ] && [ center | [ top | bottom ] <length-percentage>? ] ]"
599
- },
600
- {
601
- "name": "<bg-size>",
602
- "href": "https://drafts.csswg.org/css-backgrounds-3/#typedef-bg-size",
603
- "type": "type",
604
- "value": "[ <length-percentage [0,∞]> | auto ]{1,2} | cover | contain"
605
- },
606
- {
607
- "name": "<bg-layer>",
608
- "href": "https://drafts.csswg.org/css-backgrounds-3/#typedef-bg-layer",
609
- "type": "type",
610
- "value": "<bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <visual-box> || <visual-box>"
611
- },
612
- {
613
- "name": "<final-bg-layer>",
614
- "href": "https://drafts.csswg.org/css-backgrounds-3/#typedef-final-bg-layer",
615
- "type": "type",
616
- "value": "<bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <visual-box> || <visual-box> || <'background-color'>"
617
- },
618
- {
619
- "name": "<line-style>",
620
- "href": "https://drafts.csswg.org/css-backgrounds-3/#typedef-line-style",
621
- "type": "type",
622
- "value": "none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset",
623
- "values": [
624
- {
625
- "name": "none",
626
- "prose": "No border. Color and width are ignored (i.e., the border has width 0). Note this means that the initial value of border-image-width will also resolve to zero.",
627
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-line-style-none",
628
- "type": "value",
629
- "value": "none"
630
- },
631
- {
632
- "name": "hidden",
633
- "prose": "Same as none, but has different behavior in the border conflict resolution rules for border-collapsed tables [CSS2].",
634
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-line-style-hidden",
635
- "type": "value",
636
- "value": "hidden"
637
- },
638
- {
639
- "name": "dotted",
640
- "prose": "A series of round dots.",
641
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-line-style-dotted",
642
- "type": "value",
643
- "value": "dotted"
644
- },
645
- {
646
- "name": "dashed",
647
- "prose": "A series of square-ended dashes.",
648
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-line-style-dashed",
649
- "type": "value",
650
- "value": "dashed"
651
- },
652
- {
653
- "name": "solid",
654
- "prose": "A single line segment.",
655
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-line-style-solid",
656
- "type": "value",
657
- "value": "solid"
658
- },
659
- {
660
- "name": "double",
661
- "prose": "Two parallel solid lines with some space between them. (The thickness of the lines is not specified, but the sum of the lines and the space must equal border-width.)",
662
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-line-style-double",
663
- "type": "value",
664
- "value": "double"
665
- },
666
- {
667
- "name": "groove",
668
- "prose": "Looks as if it were carved in the canvas. (This is typically achieved by creating a “shadow” from two colors that are slightly lighter and darker than the specified border-color.)",
669
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-line-style-groove",
670
- "type": "value",
671
- "value": "groove"
672
- },
673
- {
674
- "name": "ridge",
675
- "prose": "Looks as if it were coming out of the canvas.",
676
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-line-style-ridge",
677
- "type": "value",
678
- "value": "ridge"
679
- },
680
- {
681
- "name": "inset",
682
- "prose": "Looks as if the content on the inside of the border is sunken into the canvas. Treated as ridge in the collapsing border model. [CSS2]",
683
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-line-style-inset",
684
- "type": "value",
685
- "value": "inset"
686
- },
687
- {
688
- "name": "outset",
689
- "prose": "Looks as if the content on the inside of the border is raised out of the canvas. Treated as groove in the collapsing border model. [CSS2]",
690
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-line-style-outset",
691
- "type": "value",
692
- "value": "outset"
693
- }
694
- ]
695
- },
696
- {
697
- "name": "<line-width>",
698
- "href": "https://drafts.csswg.org/css-backgrounds-3/#typedef-line-width",
699
- "type": "type",
700
- "value": "<length [0,∞]> | thin | medium | thick",
701
- "values": [
702
- {
703
- "name": "thin",
704
- "prose": "Negative values are invalid. The thin, medium, and thick keywords are equivalent to 1px, 3px, and 5px, respectively.",
705
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-line-width-thin",
706
- "type": "value",
707
- "value": "thin"
708
- },
709
- {
710
- "name": "medium",
711
- "prose": "Negative values are invalid. The thin, medium, and thick keywords are equivalent to 1px, 3px, and 5px, respectively.",
712
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-line-width-medium",
713
- "type": "value",
714
- "value": "medium"
715
- },
716
- {
717
- "name": "thick",
718
- "prose": "Negative values are invalid. The thin, medium, and thick keywords are equivalent to 1px, 3px, and 5px, respectively.",
719
- "href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-line-width-thick",
720
- "type": "value",
721
- "value": "thick"
722
- }
723
- ]
724
- },
725
- {
726
- "name": "<shadow>",
727
- "href": "https://drafts.csswg.org/css-backgrounds-3/#typedef-shadow",
728
- "type": "type",
729
- "value": "<color>? && [<length>{2} <length [0,∞]>? <length>?] && inset?"
730
- }
731
- ]
732
- }