-
Notifications
You must be signed in to change notification settings - Fork 72
/
CSS.json
3672 lines (3672 loc) · 152 KB
/
CSS.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 2",
"url": "https://drafts.csswg.org/css2/"
},
"properties": [
{
"name": "margin-top",
"href": "https://drafts.csswg.org/css2/#propdef-margin-top",
"value": "<margin-width> | inherit",
"initial": "0",
"appliesTo": "all elements except elements with table display types other than table-caption, table and inline-table",
"inherited": "no",
"percentages": "refer to width of containing block",
"computedValue": "the percentage as specified or the absolute length",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"margin-top",
"marginTop"
]
},
{
"name": "margin-bottom",
"href": "https://drafts.csswg.org/css2/#propdef-margin-bottom",
"value": "<margin-width> | inherit",
"initial": "0",
"appliesTo": "all elements except elements with table display types other than table-caption, table and inline-table",
"inherited": "no",
"percentages": "refer to width of containing block",
"computedValue": "the percentage as specified or the absolute length",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"margin-bottom",
"marginBottom"
]
},
{
"name": "margin-right",
"href": "https://drafts.csswg.org/css2/#propdef-margin-right",
"value": "<margin-width> | inherit",
"initial": "0",
"appliesTo": "all elements except elements with table display types other than table-caption, table and inline-table",
"inherited": "no",
"percentages": "refer to width of containing block",
"computedValue": "the percentage as specified or the absolute length",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"margin-right",
"marginRight"
]
},
{
"name": "margin-left",
"href": "https://drafts.csswg.org/css2/#propdef-margin-left",
"value": "<margin-width> | inherit",
"initial": "0",
"appliesTo": "all elements except elements with table display types other than table-caption, table and inline-table",
"inherited": "no",
"percentages": "refer to width of containing block",
"computedValue": "the percentage as specified or the absolute length",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"margin-left",
"marginLeft"
]
},
{
"name": "margin",
"href": "https://drafts.csswg.org/css2/#propdef-margin",
"value": "<margin-width>{1,4} | inherit",
"initial": "see individual properties",
"appliesTo": "all elements except elements with table display types other than table-caption, table and inline-table",
"inherited": "no",
"percentages": "refer to width of containing block",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"margin"
]
},
{
"name": "padding-top",
"href": "https://drafts.csswg.org/css2/#propdef-padding-top",
"value": "<padding-width> | inherit",
"initial": "0",
"appliesTo": "all elements except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column",
"inherited": "no",
"percentages": "refer to width of containing block",
"computedValue": "the percentage as specified or the absolute length",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"padding-top",
"paddingTop"
]
},
{
"name": "padding-right",
"href": "https://drafts.csswg.org/css2/#propdef-padding-right",
"value": "<padding-width> | inherit",
"initial": "0",
"appliesTo": "all elements except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column",
"inherited": "no",
"percentages": "refer to width of containing block",
"computedValue": "the percentage as specified or the absolute length",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"padding-right",
"paddingRight"
]
},
{
"name": "padding-bottom",
"href": "https://drafts.csswg.org/css2/#propdef-padding-bottom",
"value": "<padding-width> | inherit",
"initial": "0",
"appliesTo": "all elements except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column",
"inherited": "no",
"percentages": "refer to width of containing block",
"computedValue": "the percentage as specified or the absolute length",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"padding-bottom",
"paddingBottom"
]
},
{
"name": "padding-left",
"href": "https://drafts.csswg.org/css2/#propdef-padding-left",
"value": "<padding-width> | inherit",
"initial": "0",
"appliesTo": "all elements except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column",
"inherited": "no",
"percentages": "refer to width of containing block",
"computedValue": "the percentage as specified or the absolute length",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"padding-left",
"paddingLeft"
]
},
{
"name": "padding",
"href": "https://drafts.csswg.org/css2/#propdef-padding",
"value": "<padding-width>{1,4} | inherit",
"initial": "see individual properties",
"appliesTo": "all elements except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column",
"inherited": "no",
"percentages": "refer to width of containing block",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"padding"
]
},
{
"name": "border-top-width",
"href": "https://drafts.csswg.org/css2/#propdef-border-top-width",
"value": "<border-width> | inherit",
"initial": "medium",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "absolute length; 0 if the border style is none or hidden",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border-top-width",
"borderTopWidth"
]
},
{
"name": "border-right-width",
"href": "https://drafts.csswg.org/css2/#propdef-border-right-width",
"value": "<border-width> | inherit",
"initial": "medium",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "absolute length; 0 if the border style is none or hidden",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border-right-width",
"borderRightWidth"
]
},
{
"name": "border-bottom-width",
"href": "https://drafts.csswg.org/css2/#propdef-border-bottom-width",
"value": "<border-width> | inherit",
"initial": "medium",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "absolute length; 0 if the border style is none or hidden",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border-bottom-width",
"borderBottomWidth"
]
},
{
"name": "border-left-width",
"href": "https://drafts.csswg.org/css2/#propdef-border-left-width",
"value": "<border-width> | inherit",
"initial": "medium",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "absolute length; 0 if the border style is none or hidden",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border-left-width",
"borderLeftWidth"
]
},
{
"name": "border-width",
"href": "https://drafts.csswg.org/css2/#propdef-border-width",
"value": "<border-width>{1,4} | inherit",
"initial": "see individual properties",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border-width",
"borderWidth"
]
},
{
"name": "border-top-color",
"href": "https://drafts.csswg.org/css2/#propdef-border-top-color",
"value": "<color> | transparent | inherit",
"initial": "the value of the color property",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "when taken from the color property, the computed value of color; otherwise, as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"values": [
{
"name": "<color>",
"prose": "Specifies a color value.",
"href": "https://drafts.csswg.org/css2/#valdef-border-color-color",
"type": "value",
"value": "<color>"
},
{
"name": "transparent",
"prose": "The border is transparent (though it may have width).",
"href": "https://drafts.csswg.org/css2/#valdef-border-color-transparent",
"type": "value",
"value": "transparent"
}
],
"styleDeclaration": [
"border-top-color",
"borderTopColor"
]
},
{
"name": "border-right-color",
"href": "https://drafts.csswg.org/css2/#propdef-border-right-color",
"value": "<color> | transparent | inherit",
"initial": "the value of the color property",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "when taken from the color property, the computed value of color; otherwise, as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"values": [
{
"name": "<color>",
"prose": "Specifies a color value.",
"href": "https://drafts.csswg.org/css2/#valdef-border-color-color",
"type": "value",
"value": "<color>"
},
{
"name": "transparent",
"prose": "The border is transparent (though it may have width).",
"href": "https://drafts.csswg.org/css2/#valdef-border-color-transparent",
"type": "value",
"value": "transparent"
}
],
"styleDeclaration": [
"border-right-color",
"borderRightColor"
]
},
{
"name": "border-bottom-color",
"href": "https://drafts.csswg.org/css2/#propdef-border-bottom-color",
"value": "<color> | transparent | inherit",
"initial": "the value of the color property",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "when taken from the color property, the computed value of color; otherwise, as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"values": [
{
"name": "<color>",
"prose": "Specifies a color value.",
"href": "https://drafts.csswg.org/css2/#valdef-border-color-color",
"type": "value",
"value": "<color>"
},
{
"name": "transparent",
"prose": "The border is transparent (though it may have width).",
"href": "https://drafts.csswg.org/css2/#valdef-border-color-transparent",
"type": "value",
"value": "transparent"
}
],
"styleDeclaration": [
"border-bottom-color",
"borderBottomColor"
]
},
{
"name": "border-left-color",
"href": "https://drafts.csswg.org/css2/#propdef-border-left-color",
"value": "<color> | transparent | inherit",
"initial": "the value of the color property",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "when taken from the color property, the computed value of color; otherwise, as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"values": [
{
"name": "<color>",
"prose": "Specifies a color value.",
"href": "https://drafts.csswg.org/css2/#valdef-border-color-color",
"type": "value",
"value": "<color>"
},
{
"name": "transparent",
"prose": "The border is transparent (though it may have width).",
"href": "https://drafts.csswg.org/css2/#valdef-border-color-transparent",
"type": "value",
"value": "transparent"
}
],
"styleDeclaration": [
"border-left-color",
"borderLeftColor"
]
},
{
"name": "border-color",
"href": "https://drafts.csswg.org/css2/#propdef-border-color",
"value": "[ <color> | transparent ]{1,4} | inherit",
"initial": "see individual properties",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"media": "visual",
"values": [
{
"name": "<color>",
"prose": "Specifies a color value.",
"href": "https://drafts.csswg.org/css2/#valdef-border-color-color",
"type": "value",
"value": "<color>"
},
{
"name": "transparent",
"prose": "The border is transparent (though it may have width).",
"href": "https://drafts.csswg.org/css2/#valdef-border-color-transparent",
"type": "value",
"value": "transparent"
}
],
"styleDeclaration": [
"border-color",
"borderColor"
]
},
{
"name": "border-top-style",
"href": "https://drafts.csswg.org/css2/#propdef-border-top-style",
"value": "<border-style> | inherit",
"initial": "none",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border-top-style",
"borderTopStyle"
]
},
{
"name": "border-right-style",
"href": "https://drafts.csswg.org/css2/#propdef-border-right-style",
"value": "<border-style> | inherit",
"initial": "none",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border-right-style",
"borderRightStyle"
]
},
{
"name": "border-bottom-style",
"href": "https://drafts.csswg.org/css2/#propdef-border-bottom-style",
"value": "<border-style> | inherit",
"initial": "none",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border-bottom-style",
"borderBottomStyle"
]
},
{
"name": "border-left-style",
"href": "https://drafts.csswg.org/css2/#propdef-border-left-style",
"value": "<border-style> | inherit",
"initial": "none",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border-left-style",
"borderLeftStyle"
]
},
{
"name": "border-style",
"href": "https://drafts.csswg.org/css2/#propdef-border-style",
"value": "<border-style>{1,4} | inherit",
"initial": "see individual properties",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border-style",
"borderStyle"
]
},
{
"name": "border-top",
"href": "https://drafts.csswg.org/css2/#propdef-border-top",
"value": "[ <border-width> || <border-style> || <'border-top-color'> ] | inherit",
"initial": "see individual properties",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border-top",
"borderTop"
]
},
{
"name": "border-right",
"href": "https://drafts.csswg.org/css2/#propdef-border-right",
"value": "[ <border-width> || <border-style> || <'border-top-color'> ] | inherit",
"initial": "see individual properties",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border-right",
"borderRight"
]
},
{
"name": "border-bottom",
"href": "https://drafts.csswg.org/css2/#propdef-border-bottom",
"value": "[ <border-width> || <border-style> || <'border-top-color'> ] | inherit",
"initial": "see individual properties",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border-bottom",
"borderBottom"
]
},
{
"name": "border-left",
"href": "https://drafts.csswg.org/css2/#propdef-border-left",
"value": "[ <border-width> || <border-style> || <'border-top-color'> ] | inherit",
"initial": "see individual properties",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border-left",
"borderLeft"
]
},
{
"name": "border",
"href": "https://drafts.csswg.org/css2/#propdef-border",
"value": "[ <border-width> || <border-style> || <'border-top-color'> ] | inherit",
"initial": "see individual properties",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"media": "visual",
"styleDeclaration": [
"border"
]
},
{
"name": "display",
"href": "https://drafts.csswg.org/css2/#propdef-display",
"value": "inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none | inherit",
"initial": "inline",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see text",
"canonicalOrder": "per grammar",
"media": "all",
"values": [
{
"name": "block",
"prose": "This value causes an element to generate a block box.",
"href": "https://drafts.csswg.org/css2/#value-def-block",
"type": "value",
"value": "block"
},
{
"name": "inline-block",
"prose": "This value causes an element to generate an inline-level block container. The inside of an inline-block is formatted as a block box, and the element itself is formatted as an atomic inline-level box.",
"href": "https://drafts.csswg.org/css2/#value-def-inline-block",
"type": "value",
"value": "inline-block"
},
{
"name": "inline",
"prose": "This value causes an element to generate one or more inline boxes.",
"href": "https://drafts.csswg.org/css2/#value-def-inline",
"type": "value",
"value": "inline"
},
{
"name": "list-item",
"prose": "This value causes an element (e.g., LI in HTML) to generate a principal block box and a marker box. For information about lists and examples of list formatting, please consult the section on lists.",
"href": "https://drafts.csswg.org/css2/#value-def-list-item",
"type": "value",
"value": "list-item"
},
{
"name": "none",
"prose": "This value causes an element to not appear in the formatting structure (i.e., in visual media the element generates no boxes and has no effect on layout). Descendant elements do not generate any boxes either; the element and its content are removed from the formatting structure entirely. This behavior cannot be overridden by setting the display property on the descendants. Please note that a display of none does not create an invisible box; it creates no box at all. CSS includes mechanisms that enable an element to generate boxes in the formatting structure that affect formatting but are not visible themselves. Please consult the section on visibility for details.",
"href": "https://drafts.csswg.org/css2/#valdef-display-none",
"type": "value",
"value": "none"
},
{
"name": "table",
"prose": "These values cause an element to behave like a table element (subject to restrictions described in the chapter on tables).",
"href": "https://drafts.csswg.org/css2/#value-def-table",
"type": "value",
"value": "table"
},
{
"name": "inline-table",
"prose": "These values cause an element to behave like a table element (subject to restrictions described in the chapter on tables).",
"href": "https://drafts.csswg.org/css2/#value-def-inline-table",
"type": "value",
"value": "inline-table"
},
{
"name": "table-row-group",
"prose": "These values cause an element to behave like a table element (subject to restrictions described in the chapter on tables).",
"href": "https://drafts.csswg.org/css2/#value-def-table-row-group",
"type": "value",
"value": "table-row-group"
},
{
"name": "table-column",
"prose": "These values cause an element to behave like a table element (subject to restrictions described in the chapter on tables).",
"href": "https://drafts.csswg.org/css2/#value-def-table-column",
"type": "value",
"value": "table-column"
},
{
"name": "table-column-group",
"prose": "These values cause an element to behave like a table element (subject to restrictions described in the chapter on tables).",
"href": "https://drafts.csswg.org/css2/#value-def-table-column-group",
"type": "value",
"value": "table-column-group"
},
{
"name": "table-header-group",
"prose": "These values cause an element to behave like a table element (subject to restrictions described in the chapter on tables).",
"href": "https://drafts.csswg.org/css2/#value-def-table-header-group",
"type": "value",
"value": "table-header-group"
},
{
"name": "table-footer-group",
"prose": "These values cause an element to behave like a table element (subject to restrictions described in the chapter on tables).",
"href": "https://drafts.csswg.org/css2/#value-def-table-footer-group",
"type": "value",
"value": "table-footer-group"
},
{
"name": "table-row",
"prose": "These values cause an element to behave like a table element (subject to restrictions described in the chapter on tables).",
"href": "https://drafts.csswg.org/css2/#value-def-table-row",
"type": "value",
"value": "table-row"
},
{
"name": "table-cell",
"prose": "These values cause an element to behave like a table element (subject to restrictions described in the chapter on tables).",
"href": "https://drafts.csswg.org/css2/#value-def-table-cell",
"type": "value",
"value": "table-cell"
},
{
"name": "table-caption",
"prose": "These values cause an element to behave like a table element (subject to restrictions described in the chapter on tables).",
"href": "https://drafts.csswg.org/css2/#value-def-table-caption",
"type": "value",
"value": "table-caption"
}
],
"styleDeclaration": [
"display"
]
},
{
"name": "position",
"href": "https://drafts.csswg.org/css2/#propdef-position",
"value": "static | relative | absolute | fixed | inherit",
"initial": "static",
"appliesTo": "*",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"values": [
{
"name": "static",
"prose": "The box is a normal box, laid out according to the normal flow. The top, right, bottom, and left properties do not apply.",
"href": "https://drafts.csswg.org/css2/#valdef-position-static",
"type": "value",
"value": "static"
},
{
"name": "relative",
"prose": "The box’s position is calculated according to the normal flow (this is called the position in normal flow). Then the box is offset relative to its normal position. When a box B is relatively positioned, the position of the following box is calculated as though B were not offset. The effect of position:relative on table-row-group, table-header-group, table-footer-group, table-row, table-column-group, table-column, table-cell, and table-caption elements is undefined.",
"href": "https://drafts.csswg.org/css2/#valdef-position-relative",
"type": "value",
"value": "relative"
},
{
"name": "absolute",
"prose": "The box’s position (and possibly size) is specified with the top, right, bottom, and left properties. These properties specify offsets with respect to the box’s containing block. Absolutely positioned boxes are taken out of the normal flow. This means they have no impact on the layout of later siblings. Also, though absolutely positioned boxes have margins, they do not collapse with any other margins.",
"href": "https://drafts.csswg.org/css2/#valdef-position-absolute",
"type": "value",
"value": "absolute"
},
{
"name": "fixed",
"prose": "The box’s position is calculated according to the absolute model, but in addition, the box is fixed with respect to some reference. As with the absolute model, the box’s margins do not collapse with any other margins. In the case of handheld, projection, screen, tty, and tv media types, the box is fixed with respect to the viewport and does not move when scrolled. In the case of the print media type, the box is rendered on every page, and is fixed with respect to the page box, even if the page is seen through a viewport (in the case of a print-preview, for example). For other media types, the presentation is undefined. Authors may wish to specify fixed in a media-dependent way. For instance, an author may want a box to remain at the top of the viewport on the screen, but not at the top of each printed page. The two specifications may be separated by using an @media rule, as in: @media screen { h1#first { position: fixed } } @media print { h1#first { position: static } } UAs must not paginate the content of fixed boxes. Note that UAs may print invisible content in other ways. See \"Content outside the page box\" in chapter 13.",
"href": "https://drafts.csswg.org/css2/#valdef-position-fixed",
"type": "value",
"value": "fixed"
}
],
"styleDeclaration": [
"position"
]
},
{
"name": "top",
"href": "https://drafts.csswg.org/css2/#propdef-top",
"value": "<length> | <percentage> | auto | inherit",
"initial": "auto",
"appliesTo": "positioned elements",
"inherited": "no",
"percentages": "refer to height of containing block",
"computedValue": "if specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, auto.",
"canonicalOrder": "per grammar",
"media": "visual",
"values": [
{
"name": "<length>",
"prose": "The offset is a fixed distance from the reference edge. Negative values are allowed.",
"href": "https://drafts.csswg.org/css2/#valdef-top-length",
"type": "value",
"value": "<length>"
},
{
"name": "<percentage>",
"prose": "The offset is a percentage of the containing block’s width (for left or right) or height (for top and bottom). Negative values are allowed.",
"href": "https://drafts.csswg.org/css2/#valdef-top-percentage",
"type": "value",
"value": "<percentage>"
},
{
"name": "auto",
"prose": "For non-replaced elements, the effect of this value depends on which of related properties have the value auto as well. See the sections on the width and height of absolutely positioned, non-replaced elements for details. For replaced elements, the effect of this value depends only on the intrinsic dimensions of the replaced content. See the sections on the width and height of absolutely positioned, replaced elements for details.",
"href": "https://drafts.csswg.org/css2/#valdef-top-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"top"
]
},
{
"name": "right",
"href": "https://drafts.csswg.org/css2/#propdef-right",
"value": "<length> | <percentage> | auto | inherit",
"initial": "auto",
"appliesTo": "positioned elements",
"inherited": "no",
"percentages": "refer to width of containing block",
"computedValue": "if specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, auto.",
"canonicalOrder": "per grammar",
"media": "visual",
"values": [
{
"name": "<length>",
"prose": "The offset is a fixed distance from the reference edge. Negative values are allowed.",
"href": "https://drafts.csswg.org/css2/#valdef-top-length",
"type": "value",
"value": "<length>"
},
{
"name": "<percentage>",
"prose": "The offset is a percentage of the containing block’s width (for left or right) or height (for top and bottom). Negative values are allowed.",
"href": "https://drafts.csswg.org/css2/#valdef-top-percentage",
"type": "value",
"value": "<percentage>"
},
{
"name": "auto",
"prose": "For non-replaced elements, the effect of this value depends on which of related properties have the value auto as well. See the sections on the width and height of absolutely positioned, non-replaced elements for details. For replaced elements, the effect of this value depends only on the intrinsic dimensions of the replaced content. See the sections on the width and height of absolutely positioned, replaced elements for details.",
"href": "https://drafts.csswg.org/css2/#valdef-top-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"right"
]
},
{
"name": "bottom",
"href": "https://drafts.csswg.org/css2/#propdef-bottom",
"value": "<length> | <percentage> | auto | inherit",
"initial": "auto",
"appliesTo": "positioned elements",
"inherited": "no",
"percentages": "refer to height of containing block",
"computedValue": "if specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, auto.",
"canonicalOrder": "per grammar",
"media": "visual",
"values": [
{
"name": "<length>",
"prose": "The offset is a fixed distance from the reference edge. Negative values are allowed.",
"href": "https://drafts.csswg.org/css2/#valdef-top-length",
"type": "value",
"value": "<length>"
},
{
"name": "<percentage>",
"prose": "The offset is a percentage of the containing block’s width (for left or right) or height (for top and bottom). Negative values are allowed.",
"href": "https://drafts.csswg.org/css2/#valdef-top-percentage",
"type": "value",
"value": "<percentage>"
},
{
"name": "auto",
"prose": "For non-replaced elements, the effect of this value depends on which of related properties have the value auto as well. See the sections on the width and height of absolutely positioned, non-replaced elements for details. For replaced elements, the effect of this value depends only on the intrinsic dimensions of the replaced content. See the sections on the width and height of absolutely positioned, replaced elements for details.",
"href": "https://drafts.csswg.org/css2/#valdef-top-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"bottom"
]
},
{
"name": "left",
"href": "https://drafts.csswg.org/css2/#propdef-left",
"value": "<length> | <percentage> | auto | inherit",
"initial": "auto",
"appliesTo": "positioned elements",
"inherited": "no",
"percentages": "refer to width of containing block",
"computedValue": "if specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, auto.",
"canonicalOrder": "per grammar",
"media": "visual",
"values": [
{
"name": "<length>",
"prose": "The offset is a fixed distance from the reference edge. Negative values are allowed.",
"href": "https://drafts.csswg.org/css2/#valdef-top-length",
"type": "value",
"value": "<length>"
},
{
"name": "<percentage>",
"prose": "The offset is a percentage of the containing block’s width (for left or right) or height (for top and bottom). Negative values are allowed.",
"href": "https://drafts.csswg.org/css2/#valdef-top-percentage",
"type": "value",
"value": "<percentage>"
},
{
"name": "auto",
"prose": "For non-replaced elements, the effect of this value depends on which of related properties have the value auto as well. See the sections on the width and height of absolutely positioned, non-replaced elements for details. For replaced elements, the effect of this value depends only on the intrinsic dimensions of the replaced content. See the sections on the width and height of absolutely positioned, replaced elements for details.",
"href": "https://drafts.csswg.org/css2/#valdef-top-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"left"
]
},
{
"name": "float",
"href": "https://drafts.csswg.org/css2/#propdef-float",
"value": "left | right | none | inherit",
"initial": "none",
"appliesTo": "all, but see {visuren.html#dis-pos-flo}9.7{}",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"values": [
{
"name": "left",
"prose": "The element generates a block box that is floated to the left. Content flows on the right side of the box, starting at the top (subject to the clear property).",
"href": "https://drafts.csswg.org/css2/#valdef-float-left",
"type": "value",
"value": "left"
},
{
"name": "right",
"prose": "Similar to left, except the box is floated to the right, and content flows on the left side of the box, starting at the top.",
"href": "https://drafts.csswg.org/css2/#valdef-float-right",
"type": "value",
"value": "right"
},
{
"name": "none",
"prose": "The box is not floated.",
"href": "https://drafts.csswg.org/css2/#valdef-float-none",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"float"
]
},
{
"name": "clear",
"href": "https://drafts.csswg.org/css2/#propdef-clear",
"value": "none | left | right | both | inherit",
"initial": "none",
"appliesTo": "block-level elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"values": [
{
"name": "left",
"prose": "Requires that the top border edge of the box be below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document.",
"href": "https://drafts.csswg.org/css2/#valdef-clear-left",
"type": "value",
"value": "left"
},
{
"name": "right",
"prose": "Requires that the top border edge of the box be below the bottom outer edge of any right-floating boxes that resulted from elements earlier in the source document.",
"href": "https://drafts.csswg.org/css2/#valdef-clear-right",
"type": "value",
"value": "right"
},
{
"name": "both",
"prose": "Requires that the top border edge of the box be below the bottom outer edge of any right-floating and left-floating boxes that resulted from elements earlier in the source document.",
"href": "https://drafts.csswg.org/css2/#valdef-clear-both",
"type": "value",
"value": "both"
},
{
"name": "none",
"prose": "No constraint on the box’s position with respect to floats.",
"href": "https://drafts.csswg.org/css2/#valdef-clear-none",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"clear"
]
},
{
"name": "z-index",
"href": "https://drafts.csswg.org/css2/#propdef-z-index",
"value": "auto | <integer> | inherit",
"initial": "auto",
"appliesTo": "positioned elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"media": "visual",
"values": [
{
"name": "auto",
"prose": "The stack level of the generated box in the current stacking context is 0. The box does not establish a new stacking context unless it is the root element.",
"href": "https://drafts.csswg.org/css2/#valdef-z-index-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"z-index",
"zIndex"
]
},
{
"name": "direction",
"href": "https://drafts.csswg.org/css2/#propdef-direction",
"value": "ltr | rtl | inherit",
"initial": "ltr",
"appliesTo": "all elements, but see prose",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",