-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathcss-text-4.json
1516 lines (1516 loc) · 73.8 KB
/
css-text-4.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 Text Module Level 4",
"url": "https://drafts.csswg.org/css-text-4/"
},
"properties": [
{
"name": "text-transform",
"href": "https://drafts.csswg.org/css-text-4/#propdef-text-transform",
"value": "none | [capitalize | uppercase | lowercase ] || full-width || full-size-kana | math-auto",
"initial": "none",
"appliesTo": "text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "n/a",
"animationType": "discrete",
"values": [
{
"name": "none",
"prose": "No effects.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-transform-none",
"type": "value",
"value": "none"
},
{
"name": "capitalize",
"prose": "Puts the first typographic letter unit of each word, if lowercase, in titlecase; other characters are unaffected.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-transform-capitalize",
"type": "value",
"value": "capitalize"
},
{
"name": "uppercase",
"prose": "Puts all letters in uppercase.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-transform-uppercase",
"type": "value",
"value": "uppercase"
},
{
"name": "lowercase",
"prose": "Puts all letters in lowercase.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-transform-lowercase",
"type": "value",
"value": "lowercase"
},
{
"name": "full-width",
"prose": "Puts all typographic character units in full-width form. If a character does not have a corresponding full-width form, it is left as is. This value is typically used to typeset Latin letters and digits as if they were ideographic characters.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-transform-full-width",
"type": "value",
"value": "full-width"
},
{
"name": "full-size-kana",
"prose": "Converts all small Kana characters to the equivalent full-size Kana. This value is typically used for ruby annotation text, where authors may want all small Kana to be drawn as large Kana to compensate for legibility issues at the small font sizes typically used in ruby.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-transform-full-size-kana",
"type": "value",
"value": "full-size-kana"
},
{
"name": "math-auto",
"prose": "See MathML Core § 4.2 New text-transform value.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-transform-math-auto",
"type": "value",
"value": "math-auto"
}
],
"styleDeclaration": [
"text-transform",
"textTransform"
]
},
{
"name": "word-space-transform",
"href": "https://drafts.csswg.org/css-text-4/#propdef-word-space-transform",
"value": "none | [ space | ideographic-space ] && auto-phrase?",
"initial": "none",
"appliesTo": "text",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "none",
"prose": "This property has no effect.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-word-space-transform-none",
"type": "value",
"value": "none"
},
{
"name": "space",
"prose": "Expandable separators within the child text of this element are replaced by U+0020 SPACE.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-word-space-transform-space",
"type": "value",
"value": "space"
},
{
"name": "ideographic-space",
"prose": "Expandable separators within the child text of this element are replaced by U+3000 IDEOGRAPHIC SPACE.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-word-space-transform-ideographic-space",
"type": "value",
"value": "ideographic-space"
},
{
"name": "auto-phrase",
"prose": "If the content language is known and the user agent supports linguistic analysis for this language, the user agent must detect phrase boundaries. If a word-separator character, other space separator, or U+200B ZERO WIDTH SPACE character does not already occur at that boundary, then the UA must insert a virtual expandable separator. If this value is omitted, or if the content language is unknown, or if the user agent does not support detecting phrase boundaries for that language, there are no virtual expandable separator.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-word-space-transform-auto-phrase",
"type": "value",
"value": "auto-phrase"
}
],
"styleDeclaration": [
"word-space-transform",
"wordSpaceTransform"
]
},
{
"name": "white-space",
"href": "https://drafts.csswg.org/css-text-4/#propdef-white-space",
"value": "normal | pre | pre-wrap | pre-line | <'white-space-collapse'> || <'text-wrap-mode'> || <'white-space-trim'>",
"initial": "normal",
"appliesTo": "text",
"inherited": "see individual properties",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "n/a",
"animationType": "discrete",
"values": [
{
"name": "normal",
"href": "https://drafts.csswg.org/css-text-4/#valdef-white-space-normal",
"type": "value",
"value": "normal"
},
{
"name": "pre",
"href": "https://drafts.csswg.org/css-text-4/#valdef-white-space-pre",
"type": "value",
"value": "pre"
},
{
"name": "pre-wrap",
"href": "https://drafts.csswg.org/css-text-4/#valdef-white-space-pre-wrap",
"type": "value",
"value": "pre-wrap"
},
{
"name": "pre-line",
"href": "https://drafts.csswg.org/css-text-4/#valdef-white-space-pre-line",
"type": "value",
"value": "pre-line"
}
],
"styleDeclaration": [
"white-space",
"whiteSpace"
]
},
{
"name": "white-space-collapse",
"href": "https://drafts.csswg.org/css-text-4/#propdef-white-space-collapse",
"value": "collapse | discard | preserve | preserve-breaks | preserve-spaces | break-spaces",
"initial": "collapse",
"appliesTo": "text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "collapse",
"prose": "This value directs user agents to collapse sequences of white space into a single character (or in some cases, no character).",
"href": "https://drafts.csswg.org/css-text-4/#valdef-white-space-collapse-collapse",
"type": "value",
"value": "collapse"
},
{
"name": "preserve",
"prose": "This value prevents user agents from collapsing sequences of white space. Segment breaks such as line feeds are preserved as forced line breaks.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-white-space-collapse-preserve",
"type": "value",
"value": "preserve"
},
{
"name": "preserve-breaks",
"prose": "Like collapse, this value collapses consecutive white space characters, but preserves segment breaks in the source as forced line breaks.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-white-space-collapse-preserve-breaks",
"type": "value",
"value": "preserve-breaks"
},
{
"name": "preserve-spaces",
"prose": "This value prevents user agents from collapsing sequences of white space, and converts tabs and segment breaks to spaces. (This value is intended to represent the behavior of xml:space=\"preserve\" in SVG.)",
"href": "https://drafts.csswg.org/css-text-4/#valdef-white-space-collapse-preserve-spaces",
"type": "value",
"value": "preserve-spaces"
},
{
"name": "break-spaces",
"prose": "The behavior is identical to that of preserve, except that: Any sequence of preserved white space or other space separators always takes up space, including at the end of the line. A soft wrap opportunity exists after every preserved white space character and after every other space separator (including between adjacent spaces).",
"href": "https://drafts.csswg.org/css-text-4/#valdef-white-space-collapse-break-spaces",
"type": "value",
"value": "break-spaces"
},
{
"name": "discard",
"prose": "This value directs user agents to “discard” all white space in the element. Does this preserve line break opportunities or no? Do we need a distinct \"hide\" value? If it preserves line break opportunities, maybe it should be replaced with a word-space-transform value?",
"href": "https://drafts.csswg.org/css-text-4/#valdef-white-space-collapse-discard",
"type": "value",
"value": "discard"
}
],
"styleDeclaration": [
"white-space-collapse",
"whiteSpaceCollapse"
]
},
{
"name": "white-space-trim",
"href": "https://drafts.csswg.org/css-text-4/#propdef-white-space-trim",
"value": "none | discard-before || discard-after || discard-inner",
"initial": "none",
"appliesTo": "inline boxes and block containers",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified keyword(s)",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "discard-before",
"prose": "This value directs the UA to collapse all collapsible whitespace immediately before the start of the element.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-white-space-trim-discard-before",
"type": "value",
"value": "discard-before"
},
{
"name": "discard-after",
"prose": "This value directs the UA to collapse all collapsible whitespace immediately after the end of the element.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-white-space-trim-discard-after",
"type": "value",
"value": "discard-after"
},
{
"name": "discard-inner",
"prose": "For block containers this value directs UAs to discard all whitespace at the beginning of the element up to and including the last segment break before the first non-white-space character in the element as well as to discard all white space at the end of the element starting with the first segment break after the last non-white-space character in the element. For other elements this value directs UAs to discard all whitespace at the beginning and end of the element.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-white-space-trim-discard-inner",
"type": "value",
"value": "discard-inner"
}
],
"styleDeclaration": [
"white-space-trim",
"whiteSpaceTrim"
]
},
{
"name": "tab-size",
"href": "https://drafts.csswg.org/css-text-4/#propdef-tab-size",
"value": "<number [0,∞]> | <length [0,∞]>",
"initial": "8",
"appliesTo": "text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "the specified number or absolute length",
"canonicalOrder": "n/a",
"animationType": "by computed value type",
"styleDeclaration": [
"tab-size",
"tabSize"
]
},
{
"name": "text-wrap-mode",
"href": "https://drafts.csswg.org/css-text-4/#propdef-text-wrap-mode",
"value": "wrap | nowrap",
"initial": "wrap",
"appliesTo": "text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "wrap",
"prose": "Content may break across lines at allowed soft wrap opportunities, as determined by the line-breaking rules in effect, in order to minimize inline-axis overflow.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-wrap-mode-wrap",
"type": "value",
"value": "wrap"
},
{
"name": "nowrap",
"prose": "Inline-level content does not break across lines; content that does not fit within the block container overflows it.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-wrap-mode-nowrap",
"type": "value",
"value": "nowrap"
}
],
"styleDeclaration": [
"text-wrap-mode",
"textWrapMode"
]
},
{
"name": "wrap-inside",
"href": "https://drafts.csswg.org/css-text-4/#propdef-wrap-inside",
"value": "auto | avoid",
"initial": "auto",
"appliesTo": "inline boxes",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Lines may break at allowed break points within the box, as determined by the line-breaking rules in effect.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-wrap-inside-auto",
"type": "value",
"value": "auto"
},
{
"name": "avoid",
"prose": "Line breaking is suppressed within the box: the UA may only break within the box if there are no other valid break points in the line. If the text breaks, line-breaking restrictions are honored as for auto. If boxes with avoid are nested and the UA must break within these boxes, a break in an outer box must be used before a break within an inner box may be used.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-wrap-inside-avoid",
"type": "value",
"value": "avoid"
}
],
"styleDeclaration": [
"wrap-inside",
"wrapInside"
]
},
{
"name": "wrap-before",
"href": "https://drafts.csswg.org/css-text-4/#propdef-wrap-before",
"value": "auto | avoid | avoid-line | avoid-flex | line | flex",
"initial": "auto",
"appliesTo": "inline-level boxes and flex items",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Lines may break at allowed break points before and after the box, as determined by the line-breaking rules in effect.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-wrap-before-auto",
"type": "value",
"value": "auto"
},
{
"name": "avoid",
"prose": "Line breaking is suppressed immediately before/after the box: the UA may only break there if there are no other valid break points in the line. If the text breaks, line-breaking restrictions are honored as for auto.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-wrap-before-avoid",
"type": "value",
"value": "avoid"
},
{
"name": "avoid-line",
"prose": "Same as avoid, but only for line breaks.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-wrap-before-avoid-line",
"type": "value",
"value": "avoid-line"
},
{
"name": "avoid-flex",
"prose": "Same as avoid, but only for flex line breaks.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-wrap-before-avoid-flex",
"type": "value",
"value": "avoid-flex"
},
{
"name": "line",
"prose": "Force a line break immediately before/after the box if the box is an inline-level box.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-wrap-before-line",
"type": "value",
"value": "line"
},
{
"name": "flex",
"prose": "Force a flex line break immediately before/after the box if the box is a flex item in a multi-line flex container.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-wrap-before-flex",
"type": "value",
"value": "flex"
}
],
"styleDeclaration": [
"wrap-before",
"wrapBefore"
]
},
{
"name": "wrap-after",
"href": "https://drafts.csswg.org/css-text-4/#propdef-wrap-after",
"value": "auto | avoid | avoid-line | avoid-flex | line | flex",
"initial": "auto",
"appliesTo": "inline-level boxes and flex items",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Lines may break at allowed break points before and after the box, as determined by the line-breaking rules in effect.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-wrap-before-auto",
"type": "value",
"value": "auto"
},
{
"name": "avoid",
"prose": "Line breaking is suppressed immediately before/after the box: the UA may only break there if there are no other valid break points in the line. If the text breaks, line-breaking restrictions are honored as for auto.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-wrap-before-avoid",
"type": "value",
"value": "avoid"
},
{
"name": "avoid-line",
"prose": "Same as avoid, but only for line breaks.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-wrap-before-avoid-line",
"type": "value",
"value": "avoid-line"
},
{
"name": "avoid-flex",
"prose": "Same as avoid, but only for flex line breaks.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-wrap-before-avoid-flex",
"type": "value",
"value": "avoid-flex"
},
{
"name": "line",
"prose": "Force a line break immediately before/after the box if the box is an inline-level box.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-wrap-before-line",
"type": "value",
"value": "line"
},
{
"name": "flex",
"prose": "Force a flex line break immediately before/after the box if the box is a flex item in a multi-line flex container.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-wrap-before-flex",
"type": "value",
"value": "flex"
}
],
"styleDeclaration": [
"wrap-after",
"wrapAfter"
]
},
{
"name": "text-wrap-style",
"href": "https://drafts.csswg.org/css-text-4/#propdef-text-wrap-style",
"value": "auto | balance | stable | pretty | avoid-orphans",
"initial": "auto",
"appliesTo": "block containers hat establish an inline formatting context",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "The exact algorithm for selecting which soft wrap opportunity to break at is UA-defined. The algorithm may consider multiple lines when making break decisions. The UA may bias for speed over best layout. The UA must not attempt to even out all lines (including the last) as for balance. This value selects the UA’s preferred (or most Web-compatible) wrapping algorithm.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-wrap-style-auto",
"type": "value",
"value": "auto"
},
{
"name": "balance",
"prose": "Line breaks are chosen to balance the remaining (empty) space in each line box, if better balance than auto is possible. This should avoid changing—and in the case of 5 or fewer lines must not change—the number of line boxes the block would contain if text-wrap were set to auto. The remaining space to consider is that which remains after placing floats and inline content, but before any adjustments due to text justification. Line boxes are balanced when the standard deviation from the average inline-size of the remaining space in each line box is reduced over the block (including lines that end in a forced break). Groups of lines separated by a forced line break are processed separately. If the element is affected by line-clamp, the clamping effect is applied first, then the remaining lines are balanced. The exact algorithm is UA-defined. UAs may treat this value as auto if there are more than ten lines to balance.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-wrap-style-balance",
"type": "value",
"value": "balance"
},
{
"name": "stable",
"prose": "Specifies that content on subsequent lines should not be considered when making break decisions so that when editing text any content before the cursor remains stable; otherwise equivalent to auto,",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-wrap-style-stable",
"type": "value",
"value": "stable"
},
{
"name": "pretty",
"prose": "Specifies the UA should bias for better layout over speed, and is expected to consider multiple lines when making break decisions. Otherwise equivalent to auto. The user agent may among other things attempt to avoid excessively short last lines, similarly to avoid-orphans, but it should also improve the layout in additional ways. The precise set of improvements is user agent dependent, and may include things such as: reducing the variation in length between lines; avoiding typographic rivers; prioritizing different classes of soft wrap opportunities, hyphenation opportunities, or justification opportunities; avoiding hyphenation on too many consecutive lines… The necessary computations may be expensive, especially when applied to large amounts of text. Authors are encouraged to assess the impact on performance when using text-wrap-style: pretty, and possibly use it selectively where it matters most.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-wrap-style-pretty",
"type": "value",
"value": "pretty"
},
{
"name": "avoid-orphans",
"prose": "Specifies the UA should avoid excessively short last lines, and is expected to consider more than one line when making break decisions (for example, to avoid \"fixing\" an orphan by making the previous line too short). The user agent may decide against improving the last line when it would make some prior line(s) substantially unbalanced. The user agent should not attempt to improve other aspects of the layout beyond what auto if those improvements come at a significant performance cost. For instance, with the given line length, the following test would be wrapped with a single word on the last line, which could be judged too short. ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν. Applying text-wrap-style: avoid-orphans could yield something like this instead, which is arguably more pleasing: ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν. However, the following fragment is more vexing: Circumnavigating the Mississippi river An attempt to make the last line less short by wrapping the previous line earlier would result in the following: Circumnavigating the Mississippi river While the last line would indeed no longer be short, the penultimate line would be unsightly. In such cases, user agents are expected to prefer the first rendering despite text-wrap-style: avoid-orphans being set.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-wrap-style-avoid-orphans",
"type": "value",
"value": "avoid-orphans"
}
],
"styleDeclaration": [
"text-wrap-style",
"textWrapStyle"
]
},
{
"name": "text-wrap",
"href": "https://drafts.csswg.org/css-text-4/#propdef-text-wrap",
"value": "<'text-wrap-mode'> || <'text-wrap-style'>",
"initial": "wrap",
"appliesTo": "see individual properties",
"inherited": "see individual properties",
"percentages": "see individual properties",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"animationType": "see individual properties",
"styleDeclaration": [
"text-wrap",
"textWrap"
]
},
{
"name": "word-break",
"href": "https://drafts.csswg.org/css-text-4/#propdef-word-break",
"value": "normal | break-all | keep-all | manual | auto-phrase | break-word",
"initial": "normal",
"appliesTo": "text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "n/a",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "Words break according to their customary rules, as described above. Korean, which commonly exhibits two different behaviors, allows breaks between any two consecutive Hangul/Hanja. For Ethiopic, which also exhibits two different behaviors, such breaks within words are not allowed. Some writing systems require specific processing to obtain the customarily expected soft wrap opportunities, as described in § 6.1.1 Analytical Word Breaking.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-word-break-normal",
"type": "value",
"value": "normal"
},
{
"name": "break-all",
"prose": "Breaking is allowed within “words”: specifically, in addition to soft wrap opportunities allowed for normal, any typographic letter units (and any typographic character units resolving to the NU (“numeric”), AL (“alphabetic”), or SA (“Southeast Asian”) line breaking classes [UAX14]) are instead treated as ID (“ideographic characters”) for the purpose of line-breaking. Hyphenation is not applied.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-word-break-break-all",
"type": "value",
"value": "break-all"
},
{
"name": "keep-all",
"prose": "Breaking is forbidden within “words”: implicit soft wrap opportunities between typographic letter units (or other typographic character units belonging to the NU, AL, AI, or ID Unicode line breaking classes [UAX14]) are suppressed, i.e. breaks are prohibited between pairs of such characters (regardless of line-break settings other than anywhere) except where opportunities exist due to § 6.1.1.1 Lexical Word Breaking. Otherwise this option is equivalent to normal. In this style, sequences of CJK characters do not break.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-word-break-keep-all",
"type": "value",
"value": "keep-all"
},
{
"name": "manual",
"prose": "Behaves the same as normal, except that § 6.1.1.1 Lexical Word Breaking must not be performed. Specifically, typographic character units with class SA in [UAX14] must be treated as if they had class AL (i.e. assuming a value of line-break other than anywhere, there is no soft wrap opportunity between pairs of such characters). alternatively, this value could be based on keep-all rather than normal. Yet another variant is to merge this behavior with keep-all.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-word-break-manual",
"type": "value",
"value": "manual"
},
{
"name": "auto-phrase",
"prose": "Behaves the same as normal, except that this value directs the user agent to perform language-specific content analysis to prioritize keeping natural phrases (of multiple words) together. If the content language of the element is unknown, or if the user agent does not know how to detect phrase boundaries for that particular language, this value must behave as normal. Otherwise, the user agent should detect phrase boundaries and suppress soft wrap opportunities within each phrase. Regardless of the content language and support for phrase boundary detection, hyphenation opportunities are suppressed as if hyphens: none had been specified.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-word-break-auto-phrase",
"type": "value",
"value": "auto-phrase"
},
{
"name": "break-word",
"prose": "For compatibility with legacy content, the word-break property also supports a deprecated break-word keyword. When specified, this has the same effect as word-break: normal and overflow-wrap: anywhere, regardless of the actual value of the overflow-wrap property.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-word-break-break-word",
"type": "value",
"value": "break-word"
}
],
"styleDeclaration": [
"word-break",
"wordBreak"
]
},
{
"name": "line-break",
"href": "https://drafts.csswg.org/css-text-4/#propdef-line-break",
"value": "auto | loose | normal | strict | anywhere",
"initial": "auto",
"appliesTo": "text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "n/a",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "The UA determines the set of line-breaking restrictions to use, and it may vary the restrictions based on the length of the line; e.g., use a less restrictive set of line-break rules for short lines.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-line-break-auto",
"type": "value",
"value": "auto"
},
{
"name": "loose",
"prose": "Breaks text using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-line-break-loose",
"type": "value",
"value": "loose"
},
{
"name": "normal",
"prose": "Breaks text using the most common set of line-breaking rules.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-line-break-normal",
"type": "value",
"value": "normal"
},
{
"name": "strict",
"prose": "Breaks text using the most stringent set of line-breaking rules.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-line-break-strict",
"type": "value",
"value": "strict"
},
{
"name": "anywhere",
"prose": "There is a soft wrap opportunity around every typographic character unit, including around any punctuation character or preserved white spaces, or in the middle of words, disregarding any prohibition against line breaks, even those introduced by characters with the GL, WJ, or ZWJ line breaking classes or mandated by the word-break property. [UAX14] The different wrapping opportunities must not be prioritized. Hyphenation is not applied.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-line-break-anywhere",
"type": "value",
"value": "anywhere"
}
],
"styleDeclaration": [
"line-break",
"lineBreak"
]
},
{
"name": "hyphens",
"href": "https://drafts.csswg.org/css-text-4/#propdef-hyphens",
"value": "none | manual | auto",
"initial": "manual",
"appliesTo": "text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "n/a",
"animationType": "discrete",
"values": [
{
"name": "none",
"prose": "Words are not hyphenated, even if characters inside the word explicitly define hyphenation opportunities.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-hyphens-none",
"type": "value",
"value": "none"
},
{
"name": "manual",
"prose": "Words are only hyphenated where there are characters inside the word that explicitly suggest hyphenation opportunities. The UA must use the appropriate language-specific hyphenation character(s) and should apply any appropriate spelling changes just as for automatic hyphenation at the same point. In Unicode, U+00AD is a conditional \"soft hyphen\" and U+2010 is an unconditional hyphen. Unicode Standard Annex #14 describes the role of soft hyphens in Unicode line breaking. [UAX14] In HTML, ­ represents the soft hyphen character, which suggests a hyphenation opportunity. ex­ample",
"href": "https://drafts.csswg.org/css-text-4/#valdef-hyphens-manual",
"type": "value",
"value": "manual"
},
{
"name": "auto",
"prose": "Words may be broken at hyphenation opportunities determined automatically by a language-appropriate hyphenation resource in addition to those indicated explicitly by a conditional hyphen. Automatic hyphenation opportunities elsewhere within a word must be ignored if the word contains a conditional hyphen (­ or U+00AD SOFT HYPHEN), in favor of the conditional hyphen(s). However, if, even after breaking at such opportunities, a portion of that word is still too long to fit on one line, an automatic hyphenation opportunity may be used.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-hyphens-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"hyphens"
]
},
{
"name": "hyphenate-character",
"href": "https://drafts.csswg.org/css-text-4/#propdef-hyphenate-character",
"value": "auto | <string>",
"initial": "auto",
"appliesTo": "text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Specifies that the user agent should find an appropriate string based on the content language’s typographic conventions, possibly from the same source as the hyphenation dictionary.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-hyphenate-character-auto",
"type": "value",
"value": "auto"
},
{
"name": "<string>",
"prose": "Specifies the string that appears at the hyphenation break when hyphenating. (The position of this string is not affected: the UA must insert the string according to the typographic conventions of the content language, defaulting to immediately before the hyphenation break.) The UA may truncate the used value to a limited number of typographic character units; it must not truncate only part of a typographic character unit.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-hyphenate-character-string",
"type": "value",
"value": "<string>"
}
],
"styleDeclaration": [
"hyphenate-character",
"hyphenateCharacter"
]
},
{
"name": "hyphenate-limit-zone",
"href": "https://drafts.csswg.org/css-text-4/#propdef-hyphenate-limit-zone",
"value": "<length-percentage>",
"initial": "0",
"appliesTo": "block containers",
"inherited": "yes",
"percentages": "refers to length of the line box",
"computedValue": "computed <length-percentage> value",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"styleDeclaration": [
"hyphenate-limit-zone",
"hyphenateLimitZone"
]
},
{
"name": "hyphenate-limit-chars",
"href": "https://drafts.csswg.org/css-text-4/#propdef-hyphenate-limit-chars",
"value": "[ auto | <integer> ]{1,3}",
"initial": "auto",
"appliesTo": "text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "three values, each either the auto keyword or an integer",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "auto",
"prose": "If three values are specified, the first value is the required minimum for the total characters in a word, the second value is the minimum for characters before the hyphenation point, and the third value is the minimum for characters after the hyphenation point. If the third value is missing, it is the same as the second. If the second value is missing, then it is auto. The auto value means that the UA chooses a value that adapts to the current layout.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-hyphenate-limit-chars-auto",
"type": "value",
"value": "auto"
}
],
"styleDeclaration": [
"hyphenate-limit-chars",
"hyphenateLimitChars"
]
},
{
"name": "hyphenate-limit-lines",
"href": "https://drafts.csswg.org/css-text-4/#propdef-hyphenate-limit-lines",
"value": "no-limit | <integer>",
"initial": "no-limit",
"appliesTo": "block containers",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword or integer",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "none",
"prose": "No restrictions imposed.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-hyphenate-limit-lines-none",
"type": "value",
"value": "none"
},
{
"name": "always",
"prose": "The last full line of the element, or the last line before any column, page, or spread break inside the element should not be hyphenated.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-hyphenate-limit-lines-always",
"type": "value",
"value": "always"
},
{
"name": "column",
"prose": "The last line before any column, page, or spread break inside the element should not be hyphenated.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-hyphenate-limit-lines-column",
"type": "value",
"value": "column"
},
{
"name": "page",
"prose": "The last line before page or spread break inside the element should not be hyphenated.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-hyphenate-limit-lines-page",
"type": "value",
"value": "page"
},
{
"name": "spread",
"prose": "The last line before any spread break inside the element should not be hyphenated.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-hyphenate-limit-lines-spread",
"type": "value",
"value": "spread"
}
],
"styleDeclaration": [
"hyphenate-limit-lines",
"hyphenateLimitLines"
]
},
{
"name": "hyphenate-limit-last",
"href": "https://drafts.csswg.org/css-text-4/#propdef-hyphenate-limit-last",
"value": "none | always | column | page | spread",
"initial": "none",
"appliesTo": "block containers",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"styleDeclaration": [
"hyphenate-limit-last",
"hyphenateLimitLast"
]
},
{
"name": "overflow-wrap",
"href": "https://drafts.csswg.org/css-text-4/#propdef-overflow-wrap",
"value": "normal | break-word | anywhere",
"initial": "normal",
"appliesTo": "text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "n/a",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "Lines may break only at allowed break points. However, the restrictions introduced by word-break: keep-all may be relaxed to match word-break: normal if there are no otherwise-acceptable break points in the line. Also, the restrictions introduced by word-break: auto-phrase are relaxed if there are no otherwise-acceptable break points in the line: If suppressing soft wrap opportunities within a particular phrase would cause that phrase to overflow even when placed on an otherwise empty line, the user agent must fall back to the same soft wrap opportunities as normal within that phrase. If that is not enough to prevent overflow, suppression of hyphenation opportunities must also be abandoned within each line that would overflow. As an intermediary measure, user agents may also detect multiple levels of phrases, choosing to shorter ones (possibly down to individual words) when longer ones would lead to overflow. The soft wrap opportunities obtained by relaxing the restrictions introduced by word-break: keep-all and word-break: auto-phrase are not considered when calculating min-content intrinsic sizes.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-overflow-wrap-normal",
"type": "value",
"value": "normal"
},
{
"name": "anywhere",
"prose": "An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line. Shaping characters are still shaped as if the word were not broken, and grapheme clusters must stay together as one unit. No hyphenation character is inserted at the break point. Soft wrap opportunities introduced by anywhere are considered when calculating min-content intrinsic sizes. In the case of word-break: auto-phrase, these additional soft wrap opportunities are only introduced if relaxing the restrictions introduced by word-break: auto-phrase as described in overflow-wrap: normal is insufficient to prevent overflow.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-overflow-wrap-anywhere",
"type": "value",
"value": "anywhere"
},
{
"name": "break-word",
"prose": "As for anywhere except that soft wrap opportunities introduced by break-word are not considered when calculating min-content intrinsic sizes.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-overflow-wrap-break-word",
"type": "value",
"value": "break-word"
}
],
"styleDeclaration": [
"overflow-wrap",
"overflowWrap"
]
},
{
"name": "word-wrap",
"href": "https://drafts.csswg.org/css-text-4/#propdef-word-wrap",
"value": "normal | break-word | anywhere",
"initial": "normal",
"appliesTo": "text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "n/a",
"animationType": "discrete",
"styleDeclaration": [
"word-wrap",
"wordWrap"
]
},
{
"name": "text-align",
"href": "https://drafts.csswg.org/css-text-4/#propdef-text-align",
"value": "start | end | left | right | center | <string> | justify | match-parent | justify-all",
"initial": "start",
"appliesTo": "block containers",
"inherited": "yes",
"percentages": "see individual properties",
"computedValue": "see individual properties",
"animationType": "discrete",
"canonicalOrder": "n/a",
"values": [
{
"name": "start",
"prose": "Inline-level content is aligned to the start edge of the line box.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-align-start",
"type": "value",
"value": "start"
},
{
"name": "end",
"prose": "Inline-level content is aligned to the end edge of the line box.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-align-end",
"type": "value",
"value": "end"
},
{
"name": "left",
"prose": "Inline-level content is aligned to the line-left edge of the line box. (In vertical writing modes, this can be either the physical top or bottom, depending on writing-mode.) [CSS-WRITING-MODES-4]",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-align-left",
"type": "value",
"value": "left"
},
{
"name": "right",
"prose": "Inline-level content is aligned to the line-right edge of the line box. (In vertical writing modes, this can be either the physical top or bottom, depending on writing-mode.) [CSS-WRITING-MODES-4]",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-align-right",
"type": "value",
"value": "right"
},
{
"name": "center",
"prose": "Inline-level content is centered within the line box.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-align-center",
"type": "value",
"value": "center"
},
{
"name": "<string>",
"prose": "The string must be a single character; otherwise the declaration is invalid and must be ignored. When applied to a table cell, specifies the alignment character around which the cell’s contents will align. See below for further details and how this value combines with keywords.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-align-string",
"type": "value",
"value": "<string>"
},
{
"name": "alignment character",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-align-alignment-character",
"type": "value",
"value": "alignment character"
},
{
"name": "justify",
"prose": "Text is justified according to the method specified by the text-justify property, in order to exactly fill the line box. Unless otherwise specified by text-align-last, the last line before a forced break or the end of the block is start-aligned.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-align-justify",
"type": "value",
"value": "justify"
},
{
"name": "justify-all",
"prose": "Sets both text-align-all and text-align-last to justify, forcing the last line to justify as well.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-align-justify-all",
"type": "value",
"value": "justify-all"
},
{
"name": "match-parent",
"prose": "This value behaves the same as inherit (computes to its parent’s computed value) except that an inherited value of start or end is interpreted against the parent’s direction value and results in a computed value of either left or right. Computes to start when specified on the root element. When specified on the text-align shorthand, sets both text-align-all and text-align-last to match-parent.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-align-match-parent",
"type": "value",
"value": "match-parent"
}
],
"styleDeclaration": [
"text-align",
"textAlign"
]
},
{
"name": "text-align-all",
"href": "https://drafts.csswg.org/css-text-4/#propdef-text-align-all",
"value": "start | end | left | right | center | <string> | justify | match-parent",
"initial": "start",
"appliesTo": "block containers",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "keyword as specified, except for match-parent which computes as defined above",
"canonicalOrder": "n/a",
"animationType": "discrete",
"styleDeclaration": [
"text-align-all",
"textAlignAll"
]
},
{
"name": "text-align-last",
"href": "https://drafts.csswg.org/css-text-4/#propdef-text-align-last",
"value": "auto | start | end | left | right | center | justify | match-parent",
"initial": "auto",
"appliesTo": "block containers",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "keyword as specified, except for match-parent which computes as defined above",
"canonicalOrder": "n/a",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "If auto is specified, content on the affected line is aligned per text-align-all unless text-align-all is set to justify, in which case it is start-aligned. All other values are interpreted as described for text-align.",
"href": "https://drafts.csswg.org/css-text-4/#valdef-text-align-last-auto",
"type": "value",
"value": "auto"
}
],