-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathcss-inline.json
903 lines (903 loc) · 40.9 KB
/
css-inline.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
{
"spec": {
"title": "CSS Inline Layout Module Level 3",
"url": "https://drafts.csswg.org/css-inline-3/"
},
"properties": [
{
"name": "dominant-baseline",
"href": "https://drafts.csswg.org/css-inline-3/#propdef-dominant-baseline",
"value": "auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-top",
"initial": "auto",
"appliesTo": "block containers, inline boxes, table rows, grid containers, flex containers, and SVG text content elements",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Equivalent to alphabetic in horizontal writing modes and in vertical writing modes when text-orientation is sideways. Equivalent to central in vertical writing modes when text-orientation is mixed or upright. However, in SVG text, the origin point of glyphs (used for coordinate-based glyph positioning) is always handled as for central in vertical writing modes.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-dominant-baseline-auto",
"type": "value",
"value": "auto"
},
{
"name": "text-bottom",
"prose": "Use the text-under baselines.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-dominant-baseline-text-bottom",
"type": "value",
"value": "text-bottom"
},
{
"name": "alphabetic",
"prose": "Use the alphabetic baselines.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-dominant-baseline-alphabetic",
"type": "value",
"value": "alphabetic"
},
{
"name": "ideographic",
"prose": "Use the ideographic-under baselines.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-dominant-baseline-ideographic",
"type": "value",
"value": "ideographic"
},
{
"name": "middle",
"prose": "Use the x-middle baselines; except under text-orientation: upright (where the alphabetic and x-height baselines are essentially meaningless) use the central baseline.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-dominant-baseline-middle",
"type": "value",
"value": "middle"
},
{
"name": "central",
"prose": "Use the central baselines.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-dominant-baseline-central",
"type": "value",
"value": "central"
},
{
"name": "mathematical",
"prose": "Use the math baselines.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-dominant-baseline-mathematical",
"type": "value",
"value": "mathematical"
},
{
"name": "hanging",
"prose": "Use the hanging baselines.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-dominant-baseline-hanging",
"type": "value",
"value": "hanging"
},
{
"name": "text-top",
"prose": "Use the text-over baselines.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-dominant-baseline-text-top",
"type": "value",
"value": "text-top"
}
],
"styleDeclaration": [
"dominant-baseline",
"dominantBaseline"
]
},
{
"name": "vertical-align",
"href": "https://drafts.csswg.org/css-inline-3/#propdef-vertical-align",
"value": "[ first | last] || <'alignment-baseline'> || <'baseline-shift'>",
"initial": "baseline",
"appliesTo": "see individual properties",
"inherited": "no",
"percentages": "N/A",
"computedValue": "see individual properties",
"animationType": "see individual properties",
"canonicalOrder": "per grammar",
"values": [
{
"name": "auto",
"prose": "Specifies last-baseline alignment for inline-block, first-baseline alignment for everything else.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-source-auto",
"type": "value",
"value": "auto"
},
{
"name": "first",
"prose": "Specifies first-baseline alignment.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-source-first",
"type": "value",
"value": "first"
},
{
"name": "last",
"prose": "Specifies last-baseline alignment.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-source-last",
"type": "value",
"value": "last"
},
{
"name": "baseline",
"prose": "Use the dominant baseline choice of the parent.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-baseline",
"type": "value",
"value": "baseline"
},
{
"name": "text-bottom",
"prose": "Use the text-under baseline.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-text-bottom",
"type": "value",
"value": "text-bottom"
},
{
"name": "alphabetic",
"prose": "Use the alphabetic baseline.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-alphabetic",
"type": "value",
"value": "alphabetic"
},
{
"name": "ideographic",
"prose": "Use the ideographic-under baseline.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-ideographic",
"type": "value",
"value": "ideographic"
},
{
"name": "middle",
"prose": "In general, use the x-middle baselines; except under text-orientation: upright (where the alphabetic and x-height baselines are essentially meaningless) use the central baseline instead.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-middle",
"type": "value",
"value": "middle"
},
{
"name": "central",
"prose": "Use the central baseline.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-central",
"type": "value",
"value": "central"
},
{
"name": "mathematical",
"prose": "Use the math baseline.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-mathematical",
"type": "value",
"value": "mathematical"
},
{
"name": "text-top",
"prose": "Use the text-over baseline.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-text-top",
"type": "value",
"value": "text-top"
},
{
"name": "<length>",
"prose": "Raise (positive value) or lower (negative value) by the specified length.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-length",
"type": "value",
"value": "<length>"
},
{
"name": "<percentage>",
"prose": "Raise (positive value) or lower (negative value) by the specified percentage of the line-height.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-percentage",
"type": "value",
"value": "<percentage>"
},
{
"name": "sub",
"prose": "Lower by the offset appropriate for subscripts of the parent’s box. The UA may use the parent’s font metrics to find this offset; otherwise it defaults to dropping by one fifth of the parent’s used font-size.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-sub",
"type": "value",
"value": "sub"
},
{
"name": "super",
"prose": "Raise by the offset appropriate for superscripts of the parent’s box. The UA may use the parent’s font metrics to find this offset; otherwise it defaults to raising by one third of the parent’s used font-size.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-super",
"type": "value",
"value": "super"
},
{
"name": "top",
"prose": "Align the line-over edge of the aligned subtree with the line-over edge of the line box.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-top",
"type": "value",
"value": "top"
},
{
"name": "center",
"prose": "Align the center of the aligned subtree with the center of the line box.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-center",
"type": "value",
"value": "center"
},
{
"name": "bottom",
"prose": "Align the line-under edge of the aligned subtree with the line-under edge of the line box.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-bottom",
"type": "value",
"value": "bottom"
}
],
"styleDeclaration": [
"vertical-align",
"verticalAlign"
]
},
{
"name": "baseline-source",
"href": "https://drafts.csswg.org/css-inline-3/#propdef-baseline-source",
"value": "auto | first | last",
"initial": "auto",
"appliesTo": "inline-level boxes",
"inherited": "no",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Specifies last-baseline alignment for inline-block, first-baseline alignment for everything else.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-source-auto",
"type": "value",
"value": "auto"
},
{
"name": "first",
"prose": "Specifies first-baseline alignment.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-source-first",
"type": "value",
"value": "first"
},
{
"name": "last",
"prose": "Specifies last-baseline alignment.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-source-last",
"type": "value",
"value": "last"
}
],
"styleDeclaration": [
"baseline-source",
"baselineSource"
]
},
{
"name": "alignment-baseline",
"href": "https://drafts.csswg.org/css-inline-3/#propdef-alignment-baseline",
"value": "baseline | text-bottom | alphabetic | ideographic | middle | central | mathematical | text-top",
"initial": "baseline",
"appliesTo": "inline-level boxes, flex items, grid items, table cells, and SVG text content elements",
"inherited": "no",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "baseline",
"prose": "Use the dominant baseline choice of the parent.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-baseline",
"type": "value",
"value": "baseline"
},
{
"name": "text-bottom",
"prose": "Use the text-under baseline.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-text-bottom",
"type": "value",
"value": "text-bottom"
},
{
"name": "alphabetic",
"prose": "Use the alphabetic baseline.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-alphabetic",
"type": "value",
"value": "alphabetic"
},
{
"name": "ideographic",
"prose": "Use the ideographic-under baseline.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-ideographic",
"type": "value",
"value": "ideographic"
},
{
"name": "middle",
"prose": "In general, use the x-middle baselines; except under text-orientation: upright (where the alphabetic and x-height baselines are essentially meaningless) use the central baseline instead.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-middle",
"type": "value",
"value": "middle"
},
{
"name": "central",
"prose": "Use the central baseline.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-central",
"type": "value",
"value": "central"
},
{
"name": "mathematical",
"prose": "Use the math baseline.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-mathematical",
"type": "value",
"value": "mathematical"
},
{
"name": "text-top",
"prose": "Use the text-over baseline.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-text-top",
"type": "value",
"value": "text-top"
},
{
"name": "text-before-edge",
"prose": "text-before-edge aliasing text-top",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-text-before-edge",
"type": "value",
"value": "text-before-edge"
},
{
"name": "text-after-edge",
"prose": "text-after-edge aliasing text-bottom",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-text-after-edge",
"type": "value",
"value": "text-after-edge"
}
],
"styleDeclaration": [
"alignment-baseline",
"alignmentBaseline"
]
},
{
"name": "baseline-shift",
"href": "https://drafts.csswg.org/css-inline-3/#propdef-baseline-shift",
"value": "<length-percentage> | sub | super | top | center | bottom",
"initial": "0",
"appliesTo": "inline-level boxes and SVG text content elements",
"inherited": "no",
"percentages": "refer to the used value of line-height",
"computedValue": "the specified keyword or a computed <length-percentage> value",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "<length>",
"prose": "Raise (positive value) or lower (negative value) by the specified length.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-length",
"type": "value",
"value": "<length>"
},
{
"name": "<percentage>",
"prose": "Raise (positive value) or lower (negative value) by the specified percentage of the line-height.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-percentage",
"type": "value",
"value": "<percentage>"
},
{
"name": "sub",
"prose": "Lower by the offset appropriate for subscripts of the parent’s box. The UA may use the parent’s font metrics to find this offset; otherwise it defaults to dropping by one fifth of the parent’s used font-size.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-sub",
"type": "value",
"value": "sub"
},
{
"name": "super",
"prose": "Raise by the offset appropriate for superscripts of the parent’s box. The UA may use the parent’s font metrics to find this offset; otherwise it defaults to raising by one third of the parent’s used font-size.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-super",
"type": "value",
"value": "super"
},
{
"name": "top",
"prose": "Align the line-over edge of the aligned subtree with the line-over edge of the line box.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-top",
"type": "value",
"value": "top"
},
{
"name": "center",
"prose": "Align the center of the aligned subtree with the center of the line box.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-center",
"type": "value",
"value": "center"
},
{
"name": "bottom",
"prose": "Align the line-under edge of the aligned subtree with the line-under edge of the line box.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-bottom",
"type": "value",
"value": "bottom"
},
{
"name": "baseline",
"prose": "User agents may additionally support the keyword baseline as computing to 0 if is necessary for them to support legacy SVG content. This value is not allowed in the vertical-align shorthand.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-baseline-shift-baseline",
"type": "value",
"value": "baseline"
}
],
"styleDeclaration": [
"baseline-shift",
"baselineShift"
]
},
{
"name": "line-height",
"href": "https://drafts.csswg.org/css-inline-3/#propdef-line-height",
"value": "normal | <number [0,∞]> | <length-percentage [0,∞]>",
"initial": "normal",
"appliesTo": "non-replaced inline boxes and SVG text content elements",
"inherited": "yes",
"percentages": "computed relative to 1em",
"computedValue": "the specified keyword, a number, or a computed <length> value",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "normal",
"prose": "Determine the preferred line height automatically based on font metrics.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-height-normal",
"type": "value",
"value": "normal"
},
{
"name": "<length [0,∞]>",
"prose": "The specified length is used as the preferred line height. Negative values are illegal.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-height-length-0",
"type": "value",
"value": "<length [0,∞]>"
},
{
"name": "<number [0,∞]>",
"prose": "The preferred line height is this number multiplied by the element’s computed font-size. Negative values are illegal. The computed value is the same as the specified value.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-height-number-0",
"type": "value",
"value": "<number [0,∞]>"
},
{
"name": "<percentage [0,∞]>",
"prose": "The preferred line height and computed value of the property is this percentage of the element’s computed font-size. Negative values are illegal.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-height-percentage-0",
"type": "value",
"value": "<percentage [0,∞]>"
}
],
"styleDeclaration": [
"line-height",
"lineHeight"
]
},
{
"name": "line-fit-edge",
"href": "https://drafts.csswg.org/css-inline-3/#propdef-line-fit-edge",
"value": "leading | <text-edge>",
"initial": "leading",
"appliesTo": "inline boxes",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "the specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "leading",
"prose": "Use the ascent/descent plus any positive half-leading. Margin/padding/border is ignored for the purpose of sizing the line box.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-fit-edge-leading",
"type": "value",
"value": "leading"
},
{
"name": "text",
"prose": "Use the text-over baseline/text-under baseline as the over/under edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-fit-edge-text",
"type": "value",
"value": "text"
},
{
"name": "cap",
"prose": "Use the cap-height baseline as the over edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-fit-edge-cap",
"type": "value",
"value": "cap"
},
{
"name": "ex",
"prose": "Use the x-height baseline as the over edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-fit-edge-ex",
"type": "value",
"value": "ex"
},
{
"name": "ideographic",
"prose": "Use the ideographic-over baseline/ideographic-under baseline as the over/under edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-fit-edge-ideographic",
"type": "value",
"value": "ideographic"
},
{
"name": "ideographic-ink",
"prose": "Use the ideographic-ink-over baseline/ideographic-ink-under baseline as the over/under edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-fit-edge-ideographic-ink",
"type": "value",
"value": "ideographic-ink"
},
{
"name": "alphabetic",
"prose": "Use the alphabetic baseline as the under edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-fit-edge-alphabetic",
"type": "value",
"value": "alphabetic"
}
],
"styleDeclaration": [
"line-fit-edge",
"lineFitEdge"
]
},
{
"name": "text-box",
"href": "https://drafts.csswg.org/css-inline-3/#propdef-text-box",
"value": "normal | <'text-box-trim'> || <'text-box-edge'>",
"initial": "normal",
"appliesTo": "block containers and inline boxes",
"inherited": "no",
"percentages": "N/A",
"computedValue": "the specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "If the single keyword normal is specified, it sets text-box-trim to none and text-box-edge to auto. Otherwise, omitting the text-box-trim value sets it to both (not the initial value), while omitting the text-box-edge value sets it to auto (the initial value).",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-text-box-normal",
"type": "value",
"value": "normal"
}
],
"styleDeclaration": [
"text-box",
"textBox"
]
},
{
"name": "text-box-trim",
"href": "https://drafts.csswg.org/css-inline-3/#propdef-text-box-trim",
"value": "none | trim-start | trim-end | trim-both",
"initial": "none",
"appliesTo": "block containers and inline boxes",
"inherited": "no",
"percentages": "N/A",
"computedValue": "the specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "none",
"prose": "No special handling of the first/last line box when applied to a block container. When applied to an inline box, specifies that the over/under content edges coincide with the text-over/text-under baselines regardless of text-box-edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-text-box-trim-none",
"type": "value",
"value": "none"
},
{
"name": "trim-start",
"prose": "For block containers and column boxes: trim the block-start side of the first formatted line to the specified metric of its root inline box. If there is no such line, or if there is intervening non-zero padding or borders, there is no effect. For inline boxes: trims the block-start side of the box to match its content edge to the metric specified by text-box-edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-text-box-trim-trim-start",
"type": "value",
"value": "trim-start"
},
{
"name": "trim-end",
"prose": "For block containers and column boxes: trim the block-end side of the last formatted line to the specified metric of its root inline box. If there is no such line, or if there is intervening non-zero padding or borders, there is no effect. For inline boxes: trims the block-end side of the box to match its content edge to the metric specified by text-box-edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-text-box-trim-trim-end",
"type": "value",
"value": "trim-end"
},
{
"name": "trim-both",
"prose": "Specifies the behavior of trim-start and trim-end simultaneously.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-text-box-trim-trim-both",
"type": "value",
"value": "trim-both"
}
],
"styleDeclaration": [
"text-box-trim",
"textBoxTrim"
]
},
{
"name": "text-box-edge",
"href": "https://drafts.csswg.org/css-inline-3/#propdef-text-box-edge",
"value": "auto | <text-edge>",
"initial": "auto",
"appliesTo": "block containers and inline boxes",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "the specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "This property specifies the metrics to use for text-box-trim effects. Values have the same meanings as for line-fit-edge; the auto keyword uses the value of line-fit-edge, interpreting leading (the initial value) as text.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-text-box-edge-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"text-box-edge",
"textBoxEdge"
]
},
{
"name": "inline-sizing",
"href": "https://drafts.csswg.org/css-inline-3/#propdef-inline-sizing",
"value": "normal | stretch",
"initial": "normal",
"appliesTo": "inline boxes, but not ruby container boxes nor internal ruby boxes",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "The content area of the inline box is sized and positioned to fit (possibly hypothetical) text from its first available font. If text-box-trim indicates trimming, then the specified metric must be used. Otherwise, this specification does not specify how. A UA may, e.g., use the maximum ascender and descender of the font. (This would ensure that glyphs with parts above or below the em-box still fall within the content area, but leads to differently sized boxes for different fonts.)",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-inline-sizing-normal",
"type": "value",
"value": "normal"
},
{
"name": "stretch",
"prose": "Once the line box has been sized and its contents positioned as for normal, the inline box’s box edges are shifted such that its over/under margin edges coincide with the corresponding line box’s edges, stretching the inline box’s inner logical height so that its block-axis outer size fills the line box. (The sizes and positions of its in-flow contents are not affected.)",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-inline-sizing-stretch",
"type": "value",
"value": "stretch"
}
],
"styleDeclaration": [
"inline-sizing",
"inlineSizing"
]
},
{
"name": "initial-letter",
"href": "https://drafts.csswg.org/css-inline-3/#propdef-initial-letter",
"value": "normal | <number [1,∞]> <integer [1,∞]> | <number [1,∞]> && [ drop | raise ]?",
"initial": "normal",
"appliesTo": "certain inline-level boxes and ::first-letter and inside ::marker boxes (see prose)",
"inherited": "no",
"percentages": "N/A",
"computedValue": "the keyword normal or a number paired with an integer",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "normal",
"prose": "No special initial letter effect. Text behaves as normal.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-normal",
"type": "value",
"value": "normal"
},
{
"name": "<number [1,∞]>",
"prose": "This first argument defines the size of the initial letter in terms of how many lines it occupies. Values less than one are invalid.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-number-1",
"type": "value",
"value": "<number [1,∞]>"
},
{
"name": "<integer [1,∞]>",
"prose": "This optional second argument defines the number of lines the initial letter should sink. A value of 1 indicates a raised initial; values greater than 1 indicate a sunken initial. Values less than one are invalid.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-integer-1",
"type": "value",
"value": "<integer [1,∞]>"
},
{
"name": "raise",
"prose": "Computes to an initial letter sink of 1.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-raise",
"type": "value",
"value": "raise"
},
{
"name": "drop",
"prose": "Computes to an initial letter sink equal to the initial letter size floored to the nearest positive whole number.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-drop",
"type": "value",
"value": "drop"
}
],
"styleDeclaration": [
"initial-letter",
"initialLetter"
]
},
{
"name": "initial-letter-align",
"href": "https://drafts.csswg.org/css-inline-3/#propdef-initial-letter-align",
"value": "[ border-box? [ alphabetic | ideographic | hanging | leading ]? ]!",
"initial": "alphabetic",
"appliesTo": "certain inline-level boxes and ::first-letter and inside ::marker boxes (see prose)",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "specified keyword(s)",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "alphabetic",
"prose": "Use the cap-height and alphabetic baselines of the surrounding text to align the initial letter.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-align-alphabetic",
"type": "value",
"value": "alphabetic"
},
{
"name": "ideographic",
"prose": "Use the ideographic-ink-over and ideographic-ink-under baselines of the surrounding text to align the initial letter.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-align-ideographic",
"type": "value",
"value": "ideographic"
},
{
"name": "hanging",
"prose": "Use the hanging and alphabetic baselines of the surrounding text to align the initial letter.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-align-hanging",
"type": "value",
"value": "hanging"
},
{
"name": "leading",
"prose": "Use the over/under half-leading edges (i.e. ascent/descent + half-leading) of the surrounding text to align the initial letter.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-align-leading",
"type": "value",
"value": "leading"
},
{
"name": "border-box",
"prose": "Use the initial letter box’s line-under and line-over border edges as the over and under alignment points, respectively.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-align-border-box",
"type": "value",
"value": "border-box"
}
],
"styleDeclaration": [
"initial-letter-align",
"initialLetterAlign"
]
},
{
"name": "initial-letter-wrap",
"href": "https://drafts.csswg.org/css-inline-3/#propdef-initial-letter-wrap",
"value": "none | first | all | grid | <length-percentage>",
"initial": "none",
"appliesTo": "certain inline-level boxes and ::first-letter and inside ::marker boxes (see prose)",
"inherited": "yes",
"percentages": "relative to logical width of (last fragment of) initial letter",
"computedValue": "specified keyword or computed <length-percentage> value",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "none",
"prose": "No contour-fitting is performed: each impacted line is aligned flush to the inline-end margin edge of the initial letter.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-wrap-none",
"type": "value",
"value": "none"
},
{
"name": "first",
"prose": "Behaves as none if the first typographic character unit after the initial letter belongs to Unicode General Category Zs. Otherwise behaves as for all on the first line of the block containing the initial letter and as none on the rest. This example shows why contour-fitting the first line is necessary, and why it is dropped when the initial letter is followed by a space: In the top paragraph, the initial letter \"A\" has a word space after it: the gap between the top of the \"A\" and the next letter provides the necessary word separation. In the next paragraph, the initial letter \"A\" is part of the first word, and leaving a gap between the top of the \"A\" and the next letter would create a jarring visual break within the word. In this case, the first line of text should be kerned into the initial letter’s area, as shown in the bottom paragraph. Do we need an unconditional first? (I.e. Should we rename this value to auto and add a first value that does not check for spaces?) See GitHub issue 410",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-wrap-first",
"type": "value",
"value": "first"
},
{
"name": "all",
"prose": "For each line of text impacted by the initial letter, the line box adjacent to the initial letter starts at the start-most point that does not overlap the initial letter’s glyph outline. If the value of shape-outside is not none, shape-outside is used instead of the glyph outline. In both cases, shape-margin is applied to expand the outline, and the resulting outline is clipped by the initial letter’s margin edges.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-wrap-all",
"type": "value",
"value": "all"
},
{
"name": "grid",
"prose": "This value is the same as none, except that the exclusion area of the impacted lines is increased as necessary for its end-edge to land on the character grid, i.e. to be a multiple of (1ic + letter-spacing) as computed on the containing block. The justify-self property can then be used to align the initial letter box within the exclusion area. Diagram of Japanese initial letter in vertical writing mode",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-wrap-grid",
"type": "value",
"value": "grid"
},
{
"name": "<length>",
"prose": "This value behaves the same as first except that the adjustment to the first line is given explicitly instead of being inferred from the glyph shape. This really needs font-relative lengths to be relative to the used size. In the following example, UAs that support first will use the glyph outline plus the specified margin in order to place the first line, whereas UAs that only support <length> or <percentage> values will pull in the first line by 40% of the initial letter’s width (and then add the margin to that point). h1 + p:first-letter { initial-letter: 3; /* 3-line drop-cap */ initial-letter-wrap: first; margin-right: 0.1em; } @supports (not (initial-letter-wrap: first)) { /* Classes auto-generated on paragraphs to match first letter. */ p.A:first-letter { initial-letter-wrap: -40%; /* Start of glyph outline, assuming correct font. */ } } These values and related annoyance is likely unnecessary if someone submits a patch to Blink to support first.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-wrap-length",
"type": "value",
"value": "<length>"
},
{
"name": "<percentage>",
"prose": "This value behaves the same as first except that the adjustment to the first line is given explicitly instead of being inferred from the glyph shape. This really needs font-relative lengths to be relative to the used size. In the following example, UAs that support first will use the glyph outline plus the specified margin in order to place the first line, whereas UAs that only support <length> or <percentage> values will pull in the first line by 40% of the initial letter’s width (and then add the margin to that point). h1 + p:first-letter { initial-letter: 3; /* 3-line drop-cap */ initial-letter-wrap: first; margin-right: 0.1em; } @supports (not (initial-letter-wrap: first)) { /* Classes auto-generated on paragraphs to match first letter. */ p.A:first-letter { initial-letter-wrap: -40%; /* Start of glyph outline, assuming correct font. */ } } These values and related annoyance is likely unnecessary if someone submits a patch to Blink to support first.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-initial-letter-wrap-percentage",
"type": "value",
"value": "<percentage>"
}
],
"styleDeclaration": [
"initial-letter-wrap",
"initialLetterWrap"
]
}
],
"atrules": [],
"selectors": [],
"values": [
{
"name": "<text-edge>",
"prose": "The <text-edge> value, which identifies specific font metrics, expands to",
"href": "https://drafts.csswg.org/css-inline-3/#typedef-text-edge",
"type": "type",
"value": "[ text | ideographic | ideographic-ink ] | [ text | ideographic | ideographic-ink | cap | ex ] [ text | ideographic | ideographic-ink | alphabetic ]",
"values": [
{
"name": "leading",
"prose": "Use the ascent/descent plus any positive half-leading. Margin/padding/border is ignored for the purpose of sizing the line box.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-fit-edge-leading",
"type": "value",
"value": "leading"
},
{
"name": "text",
"prose": "Use the text-over baseline/text-under baseline as the over/under edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-fit-edge-text",
"type": "value",
"value": "text"
},
{
"name": "cap",
"prose": "Use the cap-height baseline as the over edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-fit-edge-cap",
"type": "value",
"value": "cap"
},
{
"name": "ex",
"prose": "Use the x-height baseline as the over edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-fit-edge-ex",
"type": "value",
"value": "ex"
},
{
"name": "ideographic",
"prose": "Use the ideographic-over baseline/ideographic-under baseline as the over/under edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-fit-edge-ideographic",
"type": "value",
"value": "ideographic"
},
{
"name": "ideographic-ink",
"prose": "Use the ideographic-ink-over baseline/ideographic-ink-under baseline as the over/under edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-fit-edge-ideographic-ink",
"type": "value",
"value": "ideographic-ink"
},
{
"name": "alphabetic",
"prose": "Use the alphabetic baseline as the under edge.",
"href": "https://drafts.csswg.org/css-inline-3/#valdef-line-fit-edge-alphabetic",
"type": "value",
"value": "alphabetic"
}
]
}
]
}