-
Notifications
You must be signed in to change notification settings - Fork 72
/
css-backgrounds.json
1139 lines (1139 loc) · 48.5 KB
/
css-backgrounds.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"spec": {
"title": "CSS Backgrounds and Borders Module Level 3",
"url": "https://drafts.csswg.org/css-backgrounds-3/"
},
"properties": [
{
"name": "background-color",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-color",
"value": "<color>",
"initial": "transparent",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "computed color",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"styleDeclaration": [
"background-color",
"backgroundColor"
]
},
{
"name": "background-image",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-image",
"value": "<bg-image>#",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "list, each item either an <image> or the keyword none",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "none",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-image-none",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"background-image",
"backgroundImage"
]
},
{
"name": "background-repeat",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-repeat",
"value": "<repeat-style>#",
"initial": "repeat",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "list, each item a pair of keywords, one per dimension",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "repeat-x",
"prose": "Computes to repeat no-repeat.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-repeat-repeat-x",
"type": "value",
"value": "repeat-x"
},
{
"name": "repeat-y",
"prose": "Computes to no-repeat repeat.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-repeat-repeat-y",
"type": "value",
"value": "repeat-y"
},
{
"name": "repeat",
"prose": "The image is repeated in this direction as often as needed to cover the background painting area.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-repeat-repeat",
"type": "value",
"value": "repeat"
},
{
"name": "space",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-repeat-space",
"type": "value",
"value": "space"
},
{
"name": "round",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-repeat-round",
"type": "value",
"value": "round"
},
{
"name": "no-repeat",
"prose": "The image is placed once and not repeated in this direction.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-repeat-no-repeat",
"type": "value",
"value": "no-repeat"
}
],
"styleDeclaration": [
"background-repeat",
"backgroundRepeat"
]
},
{
"name": "background-attachment",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-attachment",
"value": "<attachment>#",
"initial": "scroll",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "list, each item the keyword as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "fixed",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-attachment-fixed",
"type": "value",
"value": "fixed"
},
{
"name": "local",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-attachment-local",
"type": "value",
"value": "local"
},
{
"name": "scroll",
"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.)",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-attachment-scroll",
"type": "value",
"value": "scroll"
}
],
"styleDeclaration": [
"background-attachment",
"backgroundAttachment"
]
},
{
"name": "background-position",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-position",
"value": "<bg-position>#",
"initial": "0% 0%",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "refer to size of background positioning area minus size of background image; see text",
"computedValue": "list, each item a pair of offsets (horizontal and vertical) from the top left origin each given as a computed <length-percentage> value",
"canonicalOrder": "per grammar",
"animationType": "repeatable list",
"values": [
{
"name": "<percentage>",
"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%.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-percentage",
"type": "value",
"value": "<percentage>"
},
{
"name": "<length>",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-length",
"type": "value",
"value": "<length>"
},
{
"name": "top",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-top",
"type": "value",
"value": "top"
},
{
"name": "right",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-right",
"type": "value",
"value": "right"
},
{
"name": "bottom",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-bottom",
"type": "value",
"value": "bottom"
},
{
"name": "left",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-left",
"type": "value",
"value": "left"
},
{
"name": "center",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-center",
"type": "value",
"value": "center"
}
],
"styleDeclaration": [
"background-position",
"backgroundPosition"
]
},
{
"name": "background-clip",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-clip",
"value": "<visual-box>#",
"initial": "border-box",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "list, each item a keyword as specified",
"canonicalOrder": "per grammar",
"animationType": "repeatable list",
"values": [
{
"name": "border-box",
"prose": "The background is painted within (clipped to) the border box.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-clip-border-box",
"type": "value",
"value": "border-box"
},
{
"name": "padding-box",
"prose": "The background is painted within (clipped to) the padding box.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-clip-padding-box",
"type": "value",
"value": "padding-box"
},
{
"name": "content-box",
"prose": "The background is painted within (clipped to) the content box.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-clip-content-box",
"type": "value",
"value": "content-box"
}
],
"styleDeclaration": [
"background-clip",
"backgroundClip"
]
},
{
"name": "background-origin",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-origin",
"value": "<visual-box>#",
"initial": "padding-box",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "list, each item a keyword as specified",
"canonicalOrder": "per grammar",
"animationType": "repeatable list",
"values": [
{
"name": "padding-box",
"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.)",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-origin-padding-box",
"type": "value",
"value": "padding-box"
},
{
"name": "border-box",
"prose": "The position is relative to the border box.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-origin-border-box",
"type": "value",
"value": "border-box"
},
{
"name": "content-box",
"prose": "The position is relative to the content box.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-origin-content-box",
"type": "value",
"value": "content-box"
}
],
"styleDeclaration": [
"background-origin",
"backgroundOrigin"
]
},
{
"name": "background-size",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background-size",
"value": "<bg-size>#",
"initial": "auto",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "see text",
"computedValue": "list, each item a pair of sizes (one per axis) each represented as either a keyword or a computed <length-percentage> value",
"canonicalOrder": "per grammar",
"animationType": "repeatable list",
"values": [
{
"name": "contain",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-size-contain",
"type": "value",
"value": "contain"
},
{
"name": "cover",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-size-cover",
"type": "value",
"value": "cover"
},
{
"name": "<length-percentage [0,∞]>",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-size-length-percentage-0",
"type": "value",
"value": "<length-percentage [0,∞]>"
},
{
"name": "auto",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-background-size-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"background-size",
"backgroundSize"
]
},
{
"name": "background",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-background",
"value": "<bg-layer>#? , <final-bg-layer>",
"initial": "see individual properties",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "see individual properties",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"animationType": "see individual properties",
"styleDeclaration": [
"background"
]
},
{
"name": "border-top-color",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-top-color",
"value": "<color>",
"initial": "currentColor",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "computed color",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"logicalPropertyGroup": "border-color",
"styleDeclaration": [
"border-top-color",
"borderTopColor"
]
},
{
"name": "border-right-color",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-right-color",
"value": "<color>",
"initial": "currentColor",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "computed color",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"logicalPropertyGroup": "border-color",
"styleDeclaration": [
"border-right-color",
"borderRightColor"
]
},
{
"name": "border-bottom-color",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-bottom-color",
"value": "<color>",
"initial": "currentColor",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "computed color",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"logicalPropertyGroup": "border-color",
"styleDeclaration": [
"border-bottom-color",
"borderBottomColor"
]
},
{
"name": "border-left-color",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-left-color",
"value": "<color>",
"initial": "currentColor",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "computed color",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"logicalPropertyGroup": "border-color",
"styleDeclaration": [
"border-left-color",
"borderLeftColor"
]
},
{
"name": "border-color",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-color",
"value": "<color>{1,4}",
"initial": "(see individual properties)",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"animationType": "see individual properties",
"styleDeclaration": [
"border-color",
"borderColor"
]
},
{
"name": "border-top-style",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-top-style",
"value": "<line-style>",
"initial": "none",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"logicalPropertyGroup": "border-style",
"styleDeclaration": [
"border-top-style",
"borderTopStyle"
]
},
{
"name": "border-right-style",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-right-style",
"value": "<line-style>",
"initial": "none",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"logicalPropertyGroup": "border-style",
"styleDeclaration": [
"border-right-style",
"borderRightStyle"
]
},
{
"name": "border-bottom-style",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-bottom-style",
"value": "<line-style>",
"initial": "none",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"logicalPropertyGroup": "border-style",
"styleDeclaration": [
"border-bottom-style",
"borderBottomStyle"
]
},
{
"name": "border-left-style",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-left-style",
"value": "<line-style>",
"initial": "none",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"logicalPropertyGroup": "border-style",
"styleDeclaration": [
"border-left-style",
"borderLeftStyle"
]
},
{
"name": "border-style",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-style",
"value": "<line-style>{1,4}",
"initial": "(see individual properties)",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"animationType": "see individual properties",
"styleDeclaration": [
"border-style",
"borderStyle"
]
},
{
"name": "border-top-width",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-top-width",
"value": "<line-width>",
"initial": "medium",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "absolute length, snapped as a border width; zero if the border style is none or hidden",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"logicalPropertyGroup": "border-width",
"styleDeclaration": [
"border-top-width",
"borderTopWidth"
]
},
{
"name": "border-right-width",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-right-width",
"value": "<line-width>",
"initial": "medium",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "absolute length, snapped as a border width; zero if the border style is none or hidden",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"logicalPropertyGroup": "border-width",
"styleDeclaration": [
"border-right-width",
"borderRightWidth"
]
},
{
"name": "border-bottom-width",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-bottom-width",
"value": "<line-width>",
"initial": "medium",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "absolute length, snapped as a border width; zero if the border style is none or hidden",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"logicalPropertyGroup": "border-width",
"styleDeclaration": [
"border-bottom-width",
"borderBottomWidth"
]
},
{
"name": "border-left-width",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-left-width",
"value": "<line-width>",
"initial": "medium",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "absolute length, snapped as a border width; zero if the border style is none or hidden",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"logicalPropertyGroup": "border-width",
"styleDeclaration": [
"border-left-width",
"borderLeftWidth"
]
},
{
"name": "border-width",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-width",
"value": "<line-width>{1,4}",
"initial": "(see individual properties)",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "see individual properties",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"animationType": "see individual properties",
"styleDeclaration": [
"border-width",
"borderWidth"
]
},
{
"name": "border-top",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-top",
"value": "<line-width> || <line-style> || <color>",
"initial": "See individual properties",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"animationType": "see individual properties",
"styleDeclaration": [
"border-top",
"borderTop"
]
},
{
"name": "border-right",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-right",
"value": "<line-width> || <line-style> || <color>",
"initial": "See individual properties",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"animationType": "see individual properties",
"styleDeclaration": [
"border-right",
"borderRight"
]
},
{
"name": "border-bottom",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-bottom",
"value": "<line-width> || <line-style> || <color>",
"initial": "See individual properties",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"animationType": "see individual properties",
"styleDeclaration": [
"border-bottom",
"borderBottom"
]
},
{
"name": "border-left",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-left",
"value": "<line-width> || <line-style> || <color>",
"initial": "See individual properties",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"animationType": "see individual properties",
"styleDeclaration": [
"border-left",
"borderLeft"
]
},
{
"name": "border",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border",
"value": "<line-width> || <line-style> || <color>",
"initial": "See individual properties",
"appliesTo": "all elements except ruby base containers and ruby annotation containers",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"animationType": "see individual properties",
"styleDeclaration": [
"border"
]
},
{
"name": "border-top-left-radius",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-top-left-radius",
"value": "<length-percentage [0,∞]>{1,2}",
"initial": "0",
"appliesTo": "all elements (but see prose)",
"inherited": "no",
"percentages": "Refer to corresponding dimension of the border box.",
"computedValue": "pair of computed <length-percentage> values",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"logicalPropertyGroup": "border-radius",
"styleDeclaration": [
"border-top-left-radius",
"borderTopLeftRadius"
]
},
{
"name": "border-top-right-radius",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-top-right-radius",
"value": "<length-percentage [0,∞]>{1,2}",
"initial": "0",
"appliesTo": "all elements (but see prose)",
"inherited": "no",
"percentages": "Refer to corresponding dimension of the border box.",
"computedValue": "pair of computed <length-percentage> values",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"logicalPropertyGroup": "border-radius",
"styleDeclaration": [
"border-top-right-radius",
"borderTopRightRadius"
]
},
{
"name": "border-bottom-right-radius",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-bottom-right-radius",
"value": "<length-percentage [0,∞]>{1,2}",
"initial": "0",
"appliesTo": "all elements (but see prose)",
"inherited": "no",
"percentages": "Refer to corresponding dimension of the border box.",
"computedValue": "pair of computed <length-percentage> values",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"logicalPropertyGroup": "border-radius",
"styleDeclaration": [
"border-bottom-right-radius",
"borderBottomRightRadius"
]
},
{
"name": "border-bottom-left-radius",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-bottom-left-radius",
"value": "<length-percentage [0,∞]>{1,2}",
"initial": "0",
"appliesTo": "all elements (but see prose)",
"inherited": "no",
"percentages": "Refer to corresponding dimension of the border box.",
"computedValue": "pair of computed <length-percentage> values",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"logicalPropertyGroup": "border-radius",
"styleDeclaration": [
"border-bottom-left-radius",
"borderBottomLeftRadius"
]
},
{
"name": "border-radius",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-radius",
"value": "<length-percentage [0,∞]>{1,4} [ / <length-percentage [0,∞]>{1,4} ]?",
"initial": "see individual properties",
"appliesTo": "all elements (but see prose)",
"inherited": "no",
"percentages": "Refer to corresponding dimension of the border box.",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"animationType": "see individual properties",
"styleDeclaration": [
"border-radius",
"borderRadius"
]
},
{
"name": "border-image-source",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-image-source",
"value": "none | <image>",
"initial": "none",
"appliesTo": "All elements, except internal table elements when border-collapse is collapse",
"inherited": "no",
"percentages": "N/A",
"computedValue": "the keyword none or the computed <image>",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"styleDeclaration": [
"border-image-source",
"borderImageSource"
]
},
{
"name": "border-image-slice",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-image-slice",
"value": "[<number [0,∞]> | <percentage [0,∞]>]{1,4} && fill?",
"initial": "100%",
"appliesTo": "All elements, except internal table elements when border-collapse is collapse",
"inherited": "no",
"percentages": "refer to size of the border image",
"computedValue": "four values, each either a number or percentage; plus a fill keyword if specified",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"values": [
{
"name": "<percentage [0,∞]>",
"prose": "Percentages are relative to the size of the image: the width of the image for the horizontal offsets, the height for vertical offsets.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-slice-percentage-0",
"type": "value",
"value": "<percentage [0,∞]>"
},
{
"name": "<number [0,∞]>",
"prose": "Numbers represent pixels in the image (if the image is a raster image) or vector coordinates (if the image is a vector image).",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-slice-number-0",
"type": "value",
"value": "<number [0,∞]>"
},
{
"name": "fill",
"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.)",
"href": "https://drafts.csswg.org/css-backgrounds-3/#border-image-slice-fill",
"type": "value",
"value": "fill"
}
],
"styleDeclaration": [
"border-image-slice",
"borderImageSlice"
]
},
{
"name": "border-image-width",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-image-width",
"value": "[ <length-percentage [0,∞]> | <number [0,∞]> | auto ]{1,4}",
"initial": "1",
"appliesTo": "All elements, except internal table elements when border-collapse is collapse",
"inherited": "no",
"percentages": "Relative to width/height of the border image area",
"computedValue": "four values, each either a number, the keyword auto, or a computed <length-percentage> value",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"values": [
{
"name": "<length-percentage [0,∞]>",
"prose": "Percentages refer to the size of the border image area: the width of the area for horizontal offsets, the height for vertical offsets.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-width-length-percentage-0",
"type": "value",
"value": "<length-percentage [0,∞]>"
},
{
"name": "<number [0,∞]>",
"prose": "Numbers represent multiples of the corresponding computed border-width.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-width-number-0",
"type": "value",
"value": "<number [0,∞]>"
},
{
"name": "auto",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-width-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"border-image-width",
"borderImageWidth"
]
},
{
"name": "border-image-outset",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-image-outset",
"value": "[ <length [0,∞]> | <number [0,∞]> ]{1,4}",
"initial": "0",
"appliesTo": "All elements, except internal table elements when border-collapse is collapse",
"inherited": "no",
"percentages": "N/A",
"computedValue": "four values, each a number or absolute length",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"styleDeclaration": [
"border-image-outset",
"borderImageOutset"
]
},
{
"name": "border-image-repeat",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-image-repeat",
"value": "[ stretch | repeat | round | space ]{1,2}",
"initial": "stretch",
"appliesTo": "All elements, except internal table elements when border-collapse is collapse",
"inherited": "no",
"percentages": "N/A",
"computedValue": "two keywords, one per axis",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "stretch",
"prose": "The image is stretched to fill its corresponding region.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-repeat-stretch",
"type": "value",
"value": "stretch"
},
{
"name": "repeat",
"prose": "The image is tiled (repeated) to fill its corresponding region.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-repeat-repeat",
"type": "value",
"value": "repeat"
},
{
"name": "round",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-repeat-round",
"type": "value",
"value": "round"
},
{
"name": "space",
"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.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#valdef-border-image-repeat-space",
"type": "value",
"value": "space"
}
],
"styleDeclaration": [
"border-image-repeat",
"borderImageRepeat"
]
},
{
"name": "border-image",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-border-image",
"value": "<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>",
"initial": "See individual properties",
"appliesTo": "See individual properties",
"inherited": "no",
"percentages": "N/A",
"computedValue": "See individual properties",
"canonicalOrder": "per grammar",
"animationType": "See individual properties",
"styleDeclaration": [
"border-image",
"borderImage"
]
},
{
"name": "box-shadow",
"href": "https://drafts.csswg.org/css-backgrounds-3/#propdef-box-shadow",
"value": "none | <shadow>#",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "either the keyword none or a list, each item consisting of four absolute lengths plus a computed color and optionally also a inset keyword",
"canonicalOrder": "per grammar",
"animationType": "by computed value, treating none as a zero-item list and appending blank shadows (transparent 0 0 0 0) with a corresponding inset keyword as needed to match the longer list if the shorter list is otherwise compatible with the longer one",
"values": [
{
"name": "none",
"prose": "The box-shadow property attaches one or more drop shadows to the box. The property accepts either the none value, which indicates no shadows, or a comma-separated list of shadows, ordered front to back.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#box-shadow-none",
"type": "value",
"value": "none"
},
{
"name": "<color>",
"prose": "Specifies the color of the shadow. If the color is absent, it defaults to currentColor.",
"href": "https://drafts.csswg.org/css-backgrounds-3/#shadow-color",
"type": "value",
"value": "<color>"
},
{
"name": "inset",
"prose": "If present, the inset keyword changes the drop shadow from an outer box-shadow (one that shadows the box onto the canvas, as if it were lifted above the canvas) to an inner box-shadow (one that shadows the canvas onto the box, as if the box were cut out of the canvas and shifted behind it).",
"href": "https://drafts.csswg.org/css-backgrounds-3/#shadow-inset",
"type": "value",
"value": "inset"
}
],
"styleDeclaration": [
"box-shadow",
"boxShadow"
]
}
],
"atrules": [],
"selectors": [],
"values": [
{
"name": "<bg-image>",
"href": "https://drafts.csswg.org/css-backgrounds-3/#typedef-bg-image",
"type": "type",
"value": "<image> | none"
},
{
"name": "<repeat-style>",
"href": "https://drafts.csswg.org/css-backgrounds-3/#typedef-repeat-style",
"type": "type",
"value": "repeat-x | repeat-y | [repeat | space | round | no-repeat]{1,2}"
},
{
"name": "<attachment>",
"href": "https://drafts.csswg.org/css-backgrounds-3/#typedef-attachment",
"type": "type",
"value": "scroll | fixed | local"
},