-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathcss-fonts.json
1726 lines (1726 loc) · 79.7 KB
/
css-fonts.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 Fonts Module Level 4",
"url": "https://drafts.csswg.org/css-fonts-4/"
},
"properties": [
{
"name": "font-family",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-family",
"value": "[ <family-name> | <generic-family> ]#",
"initial": "depends on user agent",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "list, each item a string and/or <generic-family> keywords",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"styleDeclaration": [
"font-family",
"fontFamily"
]
},
{
"name": "font-weight",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-weight",
"value": "<font-weight-absolute> | bolder | lighter",
"initial": "normal",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "a number, see below",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "<number [1,1000]>",
"prose": "Each number indicates a weight that is at least as dark as its predecessor. Only values greater than or equal to 1, and less than or equal to 1000, are valid, and all other values are invalid. Numeric values typically correspond to the commonly used weight names below. 100 - Thin 200 - Extra Light (Ultra Light) 300 - Light 400 - Normal 500 - Medium 600 - Semi Bold (Demi Bold) 700 - Bold 800 - Extra Bold (Ultra Bold) 900 - Black (Heavy)",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-weight-number-1-1000",
"type": "value",
"value": "<number [1,1000]>"
},
{
"name": "normal",
"prose": "Same as 400.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-weight-normal",
"type": "value",
"value": "normal"
},
{
"name": "bold",
"prose": "Same as 700.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-weight-bold",
"type": "value",
"value": "bold"
},
{
"name": "bolder",
"prose": "Specifies a bolder weight than the inherited value. See § 2.2.1 Relative Weights.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-weight-bolder",
"type": "value",
"value": "bolder"
},
{
"name": "lighter",
"prose": "Specifies a lighter weight than the inherited value. See § 2.2.1 Relative Weights.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-weight-lighter",
"type": "value",
"value": "lighter"
}
],
"styleDeclaration": [
"font-weight",
"fontWeight"
]
},
{
"name": "font-width",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-width",
"value": "normal | <percentage [0,∞]> | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded",
"initial": "normal",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "Not resolved",
"computedValue": "a percentage, see below",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "ultra-condensed",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-width-ultra-condensed",
"type": "value",
"value": "ultra-condensed"
},
{
"name": "extra-condensed",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-width-extra-condensed",
"type": "value",
"value": "extra-condensed"
},
{
"name": "condensed",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-width-condensed",
"type": "value",
"value": "condensed"
},
{
"name": "semi-condensed",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-width-semi-condensed",
"type": "value",
"value": "semi-condensed"
},
{
"name": "normal",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-width-normal",
"type": "value",
"value": "normal"
},
{
"name": "semi-expanded",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-width-semi-expanded",
"type": "value",
"value": "semi-expanded"
},
{
"name": "expanded",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-width-expanded",
"type": "value",
"value": "expanded"
},
{
"name": "extra-expanded",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-width-extra-expanded",
"type": "value",
"value": "extra-expanded"
},
{
"name": "ultra-expanded",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-width-ultra-expanded",
"type": "value",
"value": "ultra-expanded"
},
{
"name": "<percentage [0,∞]>",
"prose": "<percentage [0,∞]> values represent the fractional width of the glyphs, with 100% representing “normal” glyph widths (as defined by the font designer). Values less than 0% are invalid.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-width-percentage-0",
"type": "value",
"value": "<percentage [0,∞]>"
}
],
"styleDeclaration": [
"font-width",
"fontWidth"
]
},
{
"name": "font-style",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-style",
"value": "normal | italic | oblique <angle [-90deg,90deg]>?",
"initial": "normal",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "the keyword specified, plus angle in degrees if specified",
"canonicalOrder": "per grammar",
"animationType": "by computed value type;normal animates as oblique 0deg",
"values": [
{
"name": "normal",
"prose": "Matches against a face that is classified as a normal face, one that is neither italic or obliqued. This represents an oblique value of \"0\".",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-style-normal",
"type": "value",
"value": "normal"
},
{
"name": "italic",
"prose": "Matches against a font that is labeled as an italic face, or an oblique face if one does not exist.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-style-italic",
"type": "value",
"value": "italic"
},
{
"name": "oblique <angle [-90deg,90deg]>?",
"prose": "Controls matching against an oblique face. Positive angles represent a clockwise slant; negative angles represent a counter-clockwise slant. The lack of an <angle> represents 14deg. (Note that a font might internally provide its own mapping for \"oblique\", but the mapping within the font is disregarded.) Fractional and negative values are accepted; however, values less than -90deg or values greater than 90deg are invalid. If no oblique faces exist, and font-synthesis-style has the value auto, a synthetic oblique face will be generated.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-style-oblique-angle--90deg-90deg",
"type": "value",
"value": "oblique <angle [-90deg,90deg]>?"
}
],
"styleDeclaration": [
"font-style",
"fontStyle"
]
},
{
"name": "font-size",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-size",
"value": "<absolute-size> | <relative-size> | <length-percentage [0,∞]> | math",
"initial": "medium",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "refer to parent element’s font size",
"computedValue": "an absolute length",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "<absolute-size>",
"value": "<absolute-size>",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-size-absolute-size",
"type": "value"
},
{
"name": "<relative-size>",
"value": "<relative-size>",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-size-relative-size",
"type": "value"
},
{
"name": "<length-percentage [0,∞]>",
"prose": "A length value specifies an absolute font size (independent of the user agent’s font table). Negative lengths are invalid. A percentage value specifies an absolute font size relative to the parent element’s computed font-size. Negative percentages are invalid.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-size-length-percentage-0",
"type": "value",
"value": "<length-percentage [0,∞]>"
},
{
"name": "math",
"prose": "Special mathematical scaling rules must be applied when determining the computed value of the font-size property.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-size-math",
"type": "value",
"value": "math"
}
],
"styleDeclaration": [
"font-size",
"fontSize"
]
},
{
"name": "font-size-adjust",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-size-adjust",
"value": "none | <number [0,∞]>",
"initial": "none",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "a number or the keyword none",
"canonicalOrder": "per grammar",
"animationType": "by computed value type",
"values": [
{
"name": "none",
"prose": "Do not preserve the font’s x-height.",
"href": "https://drafts.csswg.org/css-fonts-4/#font-size-adjust-none-value",
"type": "value",
"value": "none"
},
{
"name": "<number [0,∞]>",
"prose": "Specifies the aspect value used in the calculation below to calculate the adjusted font size: c = ( a / a' ) s where: s = font-size value a = aspect value as specified by the 'font-size-adjust' property a' = aspect value of actual font c = adjusted font-size to use Negative values are invalid. This value applies to any font that is selected but in typical usage it should be based on the aspect value of the first font in the font-family list. If this is specified accurately, the (a/a') term in the formula above is effectively 1 for the first font and no adjustment occurs. If the value is specified inaccurately, text rendered using the first font in the family list will display differently in older user agents that don’t support font-size-adjust.",
"href": "https://drafts.csswg.org/css-fonts-4/#aspect-ratio-value",
"type": "value",
"value": "<number [0,∞]>"
}
],
"styleDeclaration": [
"font-size-adjust",
"fontSizeAdjust"
]
},
{
"name": "font",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font",
"value": "[ [ <'font-style'> || <font-variant-css2> || <'font-weight'> || <font-width-css3> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'># ] | <system-family-name>",
"initial": "see individual properties",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "see individual properties",
"computedValue": "see individual properties",
"canonicalOrder": "per grammar",
"animationType": "see individual properties",
"values": [
{
"name": "caption",
"prose": "The font used for captioned controls (e.g., buttons, drop-downs, etc.).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-caption",
"type": "value",
"value": "caption"
},
{
"name": "icon",
"prose": "The font used to label icons.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-icon",
"type": "value",
"value": "icon"
},
{
"name": "menu",
"prose": "The font used in menus (e.g., dropdown menus and menu lists).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-menu",
"type": "value",
"value": "menu"
},
{
"name": "message-box",
"prose": "The font used in dialog boxes.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-message-box",
"type": "value",
"value": "message-box"
},
{
"name": "small-caption",
"prose": "The font used for labeling small controls.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-small-caption",
"type": "value",
"value": "small-caption"
},
{
"name": "status-bar",
"prose": "The font used in window status bars.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-status-bar",
"type": "value",
"value": "status-bar"
}
],
"styleDeclaration": [
"font"
]
},
{
"name": "font-synthesis-weight",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-synthesis-weight",
"value": "auto | none",
"initial": "auto",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"values": [
{
"name": "auto",
"prose": "Synthesis of bold faces is allowed",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-synthesis-weight-auto",
"type": "value",
"value": "auto"
},
{
"name": "none",
"prose": "Synthesis of bold faces is not allowed",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-synthesis-weight-none",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"font-synthesis-weight",
"fontSynthesisWeight"
]
},
{
"name": "font-synthesis-style",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-synthesis-style",
"value": "auto | none",
"initial": "auto",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"media": "visual",
"values": [
{
"name": "auto",
"prose": "Synthesis of oblique faces is allowed",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-synthesis-style-auto",
"type": "value",
"value": "auto"
},
{
"name": "none",
"prose": "Synthesis of oblique faces is not allowed",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-synthesis-style-none",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"font-synthesis-style",
"fontSynthesisStyle"
]
},
{
"name": "font-synthesis-small-caps",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-synthesis-small-caps",
"value": "auto | none",
"initial": "auto",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Synthesis of small caps faces is allowed",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-synthesis-small-caps-auto",
"type": "value",
"value": "auto"
},
{
"name": "none",
"prose": "Synthesis of small caps faces is not allowed",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-synthesis-small-caps-none",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"font-synthesis-small-caps",
"fontSynthesisSmallCaps"
]
},
{
"name": "font-synthesis-position",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-synthesis-position",
"value": "auto | none",
"initial": "auto",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Synthesis of superscript and subscript forms is required",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-synthesis-position-auto",
"type": "value",
"value": "auto"
},
{
"name": "none",
"prose": "Synthesis of superscript and subscript forms is not allowed",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-synthesis-position-none",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"font-synthesis-position",
"fontSynthesisPosition"
]
},
{
"name": "font-synthesis",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-synthesis",
"value": "none | [ weight || style || small-caps || position]",
"initial": "weight style small-caps position",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "N/A",
"computedValue": "specified keyword(s)",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"styleDeclaration": [
"font-synthesis",
"fontSynthesis"
]
},
{
"name": "font-kerning",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-kerning",
"value": "auto | normal | none",
"initial": "auto",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Specifies that kerning is applied at the discretion of the user agent",
"href": "https://drafts.csswg.org/css-fonts-4/#font-kerning-auto-value",
"type": "value",
"value": "auto"
},
{
"name": "normal",
"prose": "Specifies that kerning is applied",
"href": "https://drafts.csswg.org/css-fonts-4/#font-kerning-normal-value",
"type": "value",
"value": "normal"
},
{
"name": "none",
"prose": "Specifies that kerning is not applied",
"href": "https://drafts.csswg.org/css-fonts-4/#font-kerning-none-value",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"font-kerning",
"fontKerning"
]
},
{
"name": "font-variant-ligatures",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-variant-ligatures",
"value": "normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]",
"initial": "normal",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "A value of normal specifies that common default features are enabled, as described in detail in the next section. For OpenType fonts, common ligatures and contextual forms are on by default, discretionary and historical ligatures are not.",
"href": "https://drafts.csswg.org/css-fonts-4/#font-variant-ligatures-normal-value",
"type": "value",
"value": "normal"
},
{
"name": "none",
"prose": "Specifies that all types of ligatures and contextual forms covered by this property are explicitly disabled. In situations where ligatures are not considered necessary, this may improve the speed of text rendering.",
"href": "https://drafts.csswg.org/css-fonts-4/#font-variant-ligatures-none-value",
"type": "value",
"value": "none"
},
{
"name": "common-ligatures",
"prose": "Enables display of common ligatures (OpenType features: liga, clig). For OpenType fonts, common ligatures are enabled by default.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-ligatures-common-ligatures",
"type": "value",
"value": "common-ligatures"
},
{
"name": "no-common-ligatures",
"prose": "Disables display of common ligatures (OpenType features: liga, clig).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-ligatures-no-common-ligatures",
"type": "value",
"value": "no-common-ligatures"
},
{
"name": "discretionary-ligatures",
"prose": "Enables display of discretionary ligatures (OpenType feature: dlig). Which ligatures are discretionary or optional is decided by the type designer, so authors will need to refer to the documentation of a given font to understand which ligatures are considered discretionary.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-ligatures-discretionary-ligatures",
"type": "value",
"value": "discretionary-ligatures"
},
{
"name": "no-discretionary-ligatures",
"prose": "Disables display of discretionary ligatures (OpenType feature: dlig).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-ligatures-no-discretionary-ligatures",
"type": "value",
"value": "no-discretionary-ligatures"
},
{
"name": "historical-ligatures",
"prose": "Enables display of historical ligatures (OpenType feature: hlig).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-ligatures-historical-ligatures",
"type": "value",
"value": "historical-ligatures"
},
{
"name": "no-historical-ligatures",
"prose": "Disables display of historical ligatures (OpenType feature: hlig).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-ligatures-no-historical-ligatures",
"type": "value",
"value": "no-historical-ligatures"
},
{
"name": "contextual",
"prose": "Enables display of contextual alternates (OpenType feature: calt). Although not strictly a ligature feature, like ligatures this feature is commonly used to harmonize the shapes of glyphs with the surrounding context. For OpenType fonts, this feature is on by default.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-ligatures-contextual",
"type": "value",
"value": "contextual"
},
{
"name": "no-contextual",
"prose": "Disables display of contextual alternates (OpenType feature: calt).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-ligatures-no-contextual",
"type": "value",
"value": "no-contextual"
}
],
"styleDeclaration": [
"font-variant-ligatures",
"fontVariantLigatures"
]
},
{
"name": "font-variant-position",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-variant-position",
"value": "normal | sub | super",
"initial": "normal",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "None of the features listed below are enabled.",
"href": "https://drafts.csswg.org/css-fonts-4/#font-variant-position-normal-value",
"type": "value",
"value": "normal"
},
{
"name": "sub",
"prose": "Enables display of subscript variants (OpenType feature: subs).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-position-sub",
"type": "value",
"value": "sub"
},
{
"name": "super",
"prose": "Enables display of superscript variants (OpenType feature: sups).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-position-super",
"type": "value",
"value": "super"
}
],
"styleDeclaration": [
"font-variant-position",
"fontVariantPosition"
]
},
{
"name": "font-variant-caps",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-variant-caps",
"value": "normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps",
"initial": "normal",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "None of the features listed below are enabled.",
"href": "https://drafts.csswg.org/css-fonts-4/#font-variant-caps-normal-value",
"type": "value",
"value": "normal"
},
{
"name": "small-caps",
"prose": "Enables display of small capitals (OpenType feature: smcp). Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-caps-small-caps",
"type": "value",
"value": "small-caps"
},
{
"name": "all-small-caps",
"prose": "Enables display of small capitals for both upper and lowercase letters (OpenType features: c2sc, smcp).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-caps-all-small-caps",
"type": "value",
"value": "all-small-caps"
},
{
"name": "petite-caps",
"prose": "Enables display of petite capitals (OpenType feature: pcap).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-caps-petite-caps",
"type": "value",
"value": "petite-caps"
},
{
"name": "all-petite-caps",
"prose": "Enables display of petite capitals for both upper and lowercase letters (OpenType features: c2pc, pcap).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-caps-all-petite-caps",
"type": "value",
"value": "all-petite-caps"
},
{
"name": "unicase",
"prose": "Enables display of mixture of small capitals for uppercase letters with normal lowercase letters (OpenType feature: unic).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-caps-unicase",
"type": "value",
"value": "unicase"
},
{
"name": "titling-caps",
"prose": "Enables display of titling capitals (OpenType feature: titl). Uppercase letter glyphs are often designed for use with lowercase letters. When used in all uppercase titling sequences they can appear too strong. Titling capitals are designed specifically for this situation.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-caps-titling-caps",
"type": "value",
"value": "titling-caps"
}
],
"styleDeclaration": [
"font-variant-caps",
"fontVariantCaps"
]
},
{
"name": "font-variant-numeric",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-variant-numeric",
"value": "normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]",
"initial": "normal",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "None of the features listed below are enabled.",
"href": "https://drafts.csswg.org/css-fonts-4/#font-variant-numeric-normal-value",
"type": "value",
"value": "normal"
},
{
"name": "lining-nums",
"prose": "Enables display of lining numerals (OpenType feature: lnum).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-numeric-lining-nums",
"type": "value",
"value": "lining-nums"
},
{
"name": "oldstyle-nums",
"prose": "Enables display of old-style numerals (OpenType feature: onum).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-numeric-oldstyle-nums",
"type": "value",
"value": "oldstyle-nums"
},
{
"name": "proportional-nums",
"prose": "Enables display of proportional numerals (OpenType feature: pnum).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-numeric-proportional-nums",
"type": "value",
"value": "proportional-nums"
},
{
"name": "tabular-nums",
"prose": "Enables display of tabular numerals (OpenType feature: tnum).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-numeric-tabular-nums",
"type": "value",
"value": "tabular-nums"
},
{
"name": "diagonal-fractions",
"prose": "Enables display of lining diagonal fractions (OpenType feature: frac).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-numeric-diagonal-fractions",
"type": "value",
"value": "diagonal-fractions"
},
{
"name": "stacked-fractions",
"prose": "Enables display of lining stacked fractions (OpenType feature: afrc).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-numeric-stacked-fractions",
"type": "value",
"value": "stacked-fractions"
},
{
"name": "ordinal",
"prose": "Enables display of letter forms used with ordinal numbers (OpenType feature: ordn).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-numeric-ordinal",
"type": "value",
"value": "ordinal"
},
{
"name": "slashed-zero",
"prose": "Enables display of slashed zeros (OpenType feature: zero).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-numeric-slashed-zero",
"type": "value",
"value": "slashed-zero"
}
],
"styleDeclaration": [
"font-variant-numeric",
"fontVariantNumeric"
]
},
{
"name": "font-variant-alternates",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-variant-alternates",
"value": "normal | [ stylistic(<feature-value-name>) || historical-forms || styleset(<feature-value-name>#) || character-variant(<feature-value-name>#) || swash(<feature-value-name>) || ornaments(<feature-value-name>) || annotation(<feature-value-name>) ]",
"initial": "normal",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "None of the features listed below are enabled.",
"href": "https://drafts.csswg.org/css-fonts-4/#font-variant-alternates-normal-value",
"type": "value",
"value": "normal"
},
{
"name": "historical-forms",
"prose": "Enables display of historical forms (OpenType feature: hist).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-alternates-historical-forms",
"type": "value",
"value": "historical-forms"
},
{
"name": "stylistic()",
"value": "stylistic()",
"href": "https://drafts.csswg.org/css-fonts-4/#stylistic",
"type": "value"
},
{
"name": "styleset()",
"value": "styleset()",
"href": "https://drafts.csswg.org/css-fonts-4/#styleset",
"type": "value"
},
{
"name": "character-variant()",
"value": "character-variant()",
"href": "https://drafts.csswg.org/css-fonts-4/#character-variant",
"type": "value"
},
{
"name": "swash()",
"value": "swash()",
"href": "https://drafts.csswg.org/css-fonts-4/#swash",
"type": "value"
},
{
"name": "ornaments()",
"value": "ornaments()",
"href": "https://drafts.csswg.org/css-fonts-4/#ornaments",
"type": "value"
},
{
"name": "annotation()",
"value": "annotation()",
"href": "https://drafts.csswg.org/css-fonts-4/#annotation",
"type": "value"
}
],
"styleDeclaration": [
"font-variant-alternates",
"fontVariantAlternates"
]
},
{
"name": "font-variant-east-asian",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-variant-east-asian",
"value": "normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]",
"initial": "normal",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "None of the features listed below are enabled.",
"href": "https://drafts.csswg.org/css-fonts-4/#font-variant-east-asian-normal-value",
"type": "value",
"value": "normal"
},
{
"name": "jis78",
"prose": "Enables rendering of JIS78 forms (OpenType feature: jp78).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-east-asian-jis78",
"type": "value",
"value": "jis78"
},
{
"name": "jis83",
"prose": "Enables rendering of JIS83 forms (OpenType feature: jp83).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-east-asian-jis83",
"type": "value",
"value": "jis83"
},
{
"name": "jis90",
"prose": "Enables rendering of JIS90 forms (OpenType feature: jp90).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-east-asian-jis90",
"type": "value",
"value": "jis90"
},
{
"name": "jis04",
"prose": "Enables rendering of JIS2004 forms (OpenType feature: jp04). The various JIS variants reflect the glyph forms defined in different Japanese national standards. Fonts generally include glyphs defined by the most recent national standard, but it’s sometimes necessary to use older variants, to match signage for example.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-east-asian-jis04",
"type": "value",
"value": "jis04"
},
{
"name": "simplified",
"prose": "Enables rendering of simplified forms (OpenType feature: smpl).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-east-asian-simplified",
"type": "value",
"value": "simplified"
},
{
"name": "traditional",
"prose": "Enables rendering of traditional forms (OpenType feature: trad). The simplified and traditional values allow control over the glyph forms for characters which have been simplified over time but for which the older, traditional form is still used in some contexts. The exact set of characters and glyph forms will vary to some degree by the context for which a given font was designed.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-east-asian-traditional",
"type": "value",
"value": "traditional"
},
{
"name": "full-width",
"prose": "Enables rendering of full-width variants (OpenType feature: fwid).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-east-asian-full-width",
"type": "value",
"value": "full-width"
},
{
"name": "proportional-width",
"prose": "Enables rendering of proportionally-spaced variants (OpenType feature: pwid).",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-east-asian-proportional-width",
"type": "value",
"value": "proportional-width"
},
{
"name": "ruby",
"prose": "Enables display of ruby variant glyphs (OpenType feature: ruby). Since ruby text is generally smaller than the associated body text, font designers can design special glyphs for use with ruby that are more readable than scaled down versions of the default glyphs. Only glyph selection is affected, there is no associated font scaling or other change that affects line layout. The red ruby text below is shown with default glyphs (top) and with ruby variant glyphs (bottom). Note the slight difference in stroke thickness.",
"href": "https://drafts.csswg.org/css-fonts-4/#valdef-font-variant-east-asian-ruby",
"type": "value",
"value": "ruby"
}
],
"styleDeclaration": [
"font-variant-east-asian",
"fontVariantEastAsian"
]
},
{
"name": "font-variant",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-variant",
"value": "normal | none | [ [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ] || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || [ stylistic(<feature-value-name>) || historical-forms || styleset(<feature-value-name>#) || character-variant(<feature-value-name>#) || swash(<feature-value-name>) || ornaments(<feature-value-name>) || annotation(<feature-value-name>) ] || [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ] || [ <east-asian-variant-values> || <east-asian-width-values> || ruby ] || [ sub | super ] || [ text | emoji | unicode ] ]",
"initial": "normal",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "The value normal resets all subproperties of font-variant to their initial value. The none value sets font-variant-ligatures to none and resets all other font feature properties to their initial value. Like other shorthands, using font-variant resets unspecified font-variant subproperties to their initial values.",
"href": "https://drafts.csswg.org/css-fonts-4/#font-variant-normal-value",
"type": "value",
"value": "normal"
},
{
"name": "none",
"prose": "The value normal resets all subproperties of font-variant to their initial value. The none value sets font-variant-ligatures to none and resets all other font feature properties to their initial value. Like other shorthands, using font-variant resets unspecified font-variant subproperties to their initial values.",
"href": "https://drafts.csswg.org/css-fonts-4/#font-variant-none-value",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"font-variant",
"fontVariant"
]
},
{
"name": "font-feature-settings",
"href": "https://drafts.csswg.org/css-fonts-4/#propdef-font-feature-settings",
"value": "normal | <feature-tag-value>#",
"initial": "normal",
"appliesTo": "all elements and text",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "A value of normal means that no change in glyph selection or positioning occurs due to this property.",
"href": "https://drafts.csswg.org/css-fonts-4/#font-feature-settings-normal-value",
"type": "value",
"value": "normal"
},
{
"name": "<feature-tag-value>",
"href": "https://drafts.csswg.org/css-fonts-4/#feature-tag-value",
"type": "value",
"value": "<opentype-tag> [ <integer [0,∞]> | on | off ]?"