-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
CSSValueKeywords.in
1686 lines (1515 loc) · 23.1 KB
/
CSSValueKeywords.in
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
//
// CSS value names
//
inherit
initial
unset
revert
revert-layer
//
// CSS_PROP_OUTLINE_STYLE
// CSS_PROP_BORDER_TOP_STYLE
// CSS_PROP_BORDER_BOTTOM_STYLE
// CSS_PROP_BORDER_LEFT_STYLE
// The order here must match the order of the BorderStyle enum in RenderStyleConstants.h.
none
hidden
inset
groove
outset
ridge
dotted
dashed
solid
double
//
// CSS_PROP_FONT:
//
// This needs to be kept in sync with SystemFontDatabase::FontShorthand.
caption
icon
menu
message-box
small-caption
-webkit-mini-control
-webkit-small-control
-webkit-control
-apple-system-headline enable-if=WTF_PLATFORM_COCOA
-apple-system-body enable-if=WTF_PLATFORM_COCOA
-apple-system-subheadline enable-if=WTF_PLATFORM_COCOA
-apple-system-footnote enable-if=WTF_PLATFORM_COCOA
-apple-system-caption1 enable-if=WTF_PLATFORM_COCOA
-apple-system-caption2 enable-if=WTF_PLATFORM_COCOA
-apple-system-short-headline enable-if=WTF_PLATFORM_COCOA
-apple-system-short-body enable-if=WTF_PLATFORM_COCOA
-apple-system-short-subheadline enable-if=WTF_PLATFORM_COCOA
-apple-system-short-footnote enable-if=WTF_PLATFORM_COCOA
-apple-system-short-caption1 enable-if=WTF_PLATFORM_COCOA
-apple-system-tall-body enable-if=WTF_PLATFORM_COCOA
-apple-system-title0 enable-if=WTF_PLATFORM_COCOA
-apple-system-title1 enable-if=WTF_PLATFORM_COCOA
-apple-system-title2 enable-if=WTF_PLATFORM_COCOA
-apple-system-title3 enable-if=WTF_PLATFORM_COCOA
-apple-system-title4 enable-if=WTF_PLATFORM_COCOA
// This has to go after the -apple-system versions.
status-bar
// font-size-adjust:
//
ex-height
cap-height
ch-width
ic-width
ic-height
//from-font
//
// CSS_PROP_FONT_STYLE:
//
//normal
italic
oblique
// The following is only allowed in @font-face:
all
//
// CSS_PROP_FONT_VARIANT:
//
//normal
small-caps
// font-variant-ligatures:
//
common-ligatures
no-common-ligatures
discretionary-ligatures
no-discretionary-ligatures
historical-ligatures
no-historical-ligatures
contextual
no-contextual
// font-variant-caps
//
// FIXME: Unify this with plain font-variant
// small-caps
all-small-caps
petite-caps
all-petite-caps
unicase
titling-caps
// font-variant-numeric
//
lining-nums
oldstyle-nums
proportional-nums
tabular-nums
diagonal-fractions
stacked-fractions
ordinal
slashed-zero
// font-variant-alternates
//
historical-forms
stylistic
styleset
character-variant
swash
ornaments
annotation
// font-variant-east-asian
//
jis78
jis83
jis90
jis04
simplified
traditional
full-width
proportional-width
ruby
//
// CSS_PROP_FONT_WEIGHT:
//
normal
bold
bolder
lighter
//
// CSS_PROP_FONT_SIZE:
//
xx-small
x-small
small
medium
large
x-large
xx-large
xxx-large
-webkit-ruby-text
smaller
larger
-webkit-xxx-large
//
// CSS_PROP_FONT_STRETCH:
//
//normal
wider
narrower
ultra-condensed
extra-condensed
condensed
semi-condensed
semi-expanded
expanded
extra-expanded
ultra-expanded
//
// CSS_PROP_GENERIC_FONT_FAMILY:
//
serif
sans-serif
cursive
fantasy
monospace
-webkit-body
-webkit-pictograph
system-ui
//
//
// CSS_PROP_*_COLOR
//
// https://drafts.csswg.org/css-color-4/#currentcolor-color
currentcolor
// https://drafts.csswg.org/css-color-4/#transparent-color
transparent
// Non-standard
alpha
// https://drafts.csswg.org/css-color-4/#named-colors
// "16 of CSS’s named colors come from the VGA palette originally, and were then adopted into HTML"
aqua
black
blue
fuchsia
gray
green
lime
maroon
navy
olive
orange
purple
red
silver
teal
white
yellow
grey
// https://drafts.csswg.org/css-color-4/#deprecated-system-colors
activeborder
activecaption
appworkspace
background
buttonhighlight
buttonshadow
captiontext
inactiveborder
inactivecaption
inactivecaptiontext
infobackground
infotext
// menu
menutext
scrollbar
threeddarkshadow
threedface
threedhighlight
threedlightshadow
threedshadow
window
windowframe
windowtext
// https://drafts.csswg.org/css-color-4/#typedef-system-color
canvas
canvastext
linktext
visitedtext
activetext
buttonface
buttontext
buttonborder
field
fieldtext
highlight
highlighttext
selecteditem
selecteditemtext
mark
marktext
graytext
accentcolor
accentcolortext
// Non-standard system colors
-apple-system-header-text enable-if=WTF_PLATFORM_COCOA
-apple-system-text-background enable-if=WTF_PLATFORM_COCOA
-apple-system-control-background enable-if=WTF_PLATFORM_COCOA
-apple-system-placeholder-text enable-if=WTF_PLATFORM_COCOA
-apple-system-label enable-if=WTF_PLATFORM_COCOA
-apple-system-secondary-label enable-if=WTF_PLATFORM_COCOA
-apple-system-tertiary-label enable-if=WTF_PLATFORM_COCOA
-apple-system-tertiary-fill enable-if=WTF_PLATFORM_COCOA
-apple-system-quaternary-label enable-if=WTF_PLATFORM_COCOA
-apple-system-grid enable-if=WTF_PLATFORM_COCOA
-apple-system-separator enable-if=WTF_PLATFORM_COCOA
-apple-system-container-border enable-if=WTF_PLATFORM_COCOA
-apple-system-background enable-if=WTF_PLATFORM_COCOA
-apple-system-secondary-background enable-if=WTF_PLATFORM_COCOA
-apple-system-tertiary-background enable-if=WTF_PLATFORM_COCOA
-apple-system-grouped-background enable-if=WTF_PLATFORM_COCOA
-apple-system-secondary-grouped-background enable-if=WTF_PLATFORM_COCOA
-apple-system-tertiary-grouped-background enable-if=WTF_PLATFORM_COCOA
-apple-system-selected-content-background enable-if=WTF_PLATFORM_COCOA
-apple-system-unemphasized-selected-content-background enable-if=WTF_PLATFORM_COCOA
-apple-wireless-playback-target-active enable-if=WTF_PLATFORM_COCOA
-apple-system-blue enable-if=WTF_PLATFORM_COCOA
-apple-system-brown enable-if=WTF_PLATFORM_COCOA
-apple-system-gray enable-if=WTF_PLATFORM_COCOA
-apple-system-green enable-if=WTF_PLATFORM_COCOA
-apple-system-orange enable-if=WTF_PLATFORM_COCOA
-apple-system-pink enable-if=WTF_PLATFORM_COCOA
-apple-system-purple enable-if=WTF_PLATFORM_COCOA
-apple-system-red enable-if=WTF_PLATFORM_COCOA
-apple-system-yellow enable-if=WTF_PLATFORM_COCOA
-apple-system-app-highlight-background enable-if=WTF_PLATFORM_COCOA
-apple-system-alternate-selected-text enable-if=WTF_PLATFORM_MAC
-apple-system-control-accent enable-if=WTF_PLATFORM_MAC
-apple-system-even-alternating-content-background enable-if=WTF_PLATFORM_MAC
-apple-system-odd-alternating-content-background enable-if=WTF_PLATFORM_MAC
-apple-system-selected-text enable-if=WTF_PLATFORM_MAC
-apple-system-unemphasized-selected-text enable-if=WTF_PLATFORM_MAC
-apple-system-selected-text-background enable-if=WTF_PLATFORM_MAC
-apple-system-unemphasized-selected-text-background enable-if=WTF_PLATFORM_MAC
-apple-system-find-highlight-background enable-if=WTF_PLATFORM_MAC
-apple-system-indigo enable-if=WTF_PLATFORM_IOS_FAMILY
-apple-system-teal enable-if=WTF_PLATFORM_IOS_FAMILY
-apple-system-opaque-fill enable-if=WTF_PLATFORM_IOS_FAMILY
-apple-system-opaque-secondary-fill enable-if=WTF_PLATFORM_IOS_FAMILY
-apple-system-opaque-secondary-fill-disabled enable-if=WTF_PLATFORM_IOS_FAMILY
-apple-system-opaque-tertiary-fill enable-if=WTF_PLATFORM_IOS_FAMILY
-apple-system-quaternary-fill enable-if=WTF_PLATFORM_IOS_FAMILY
-apple-system-opaque-separator enable-if=WTF_PLATFORM_IOS_FAMILY
-webkit-control-background enable-if=WTF_PLATFORM_COCOA|HAVE_OS_DARK_MODE_SUPPORT
activebuttontext
-webkit-activelink
-webkit-link
-webkit-focus-ring-color
-internal-document-text-color
//
// CSS_PROP_BACKGROUND_REPEAT:
//
repeat
repeat-x
repeat-y
no-repeat
// round
// space
//
// CSS_PROP__WEBKIT_BACKGROUND_COMPOSITE:
//
clear
copy
source-over
source-in
source-out
source-atop
destination-over
destination-in
destination-out
destination-atop
xor
plus-darker
// highlight
plus-lighter
//
// CSS_PROP_VERTICAL_ALIGN:
//
baseline
middle
sub
super
text-top
text-bottom
top
bottom
// HTML alignment MIDDLE has no corresponding CSS alignment
-webkit-baseline-middle
//
// CSS_PROP_TEXT_ALIGN:
// The order here must match the order of the TextAlignMode enum in RenderStyleConstants.h.
//
-webkit-auto
left
right
center
justify
-webkit-left
-webkit-right
-webkit-center
match-parent
-webkit-match-parent
-internal-th-center
//start
//end
//
// CSS_PROP_TEXT_JUSTIFY:
//
//auto
//none
inter-word
distribute
//
// CSS_PROP_CLEAR:
// CSS_PROP_FLOAT:
// none
// left
// right
// inline-start
// inline-end
//
// CSS_PROP_LIST_STYLE_POSITION:
//
outside
inside
//
// CSS_PROP_LIST_STYLE_TYPE:
// The order here must match the order of the ListStyleType enum in RenderStyleConstants.h.
//
disc
circle
square
decimal
decimal-leading-zero
arabic-indic
binary
bengali
cambodian
khmer
devanagari
gujarati
gurmukhi
kannada
lower-hexadecimal
lao
malayalam
mongolian
myanmar
octal
oriya
persian
urdu
telugu
tibetan
thai
upper-hexadecimal
lower-roman
upper-roman
lower-greek
lower-alpha
lower-latin
upper-alpha
upper-latin
afar
ethiopic-halehame-aa-et
ethiopic-halehame-aa-er
amharic
ethiopic-halehame-am-et
amharic-abegede
ethiopic-abegede-am-et
cjk-earthly-branch
cjk-heavenly-stem
ethiopic
ethiopic-halehame-gez
ethiopic-abegede
ethiopic-abegede-gez
hangul-consonant
hangul
lower-norwegian
oromo
ethiopic-halehame-om-et
sidama
ethiopic-halehame-sid-et
somali
ethiopic-halehame-so-et
tigre
ethiopic-halehame-tig
tigrinya-er
ethiopic-halehame-ti-er
tigrinya-er-abegede
ethiopic-abegede-ti-er
tigrinya-et
ethiopic-halehame-ti-et
tigrinya-et-abegede
ethiopic-abegede-ti-et
upper-greek
upper-norwegian
asterisks
footnotes
hebrew
armenian
lower-armenian
upper-armenian
georgian
cjk-ideographic
hiragana
katakana
hiragana-iroha
katakana-iroha
cjk-decimal
tamil
disclosure-open
disclosure-closed
japanese-informal
japanese-formal
korean-hangul-formal
korean-hanja-informal
korean-hanja-formal
simp-chinese-informal
simp-chinese-formal
trad-chinese-informal
trad-chinese-formal
ethiopic-numeric
//none
//
// CSS_PROP_DISPLAY:
// The order here must match the order of the DisplayType enum in RenderStyleConstants.h.
//
inline
block
list-item
inline-block
table
inline-table
table-row-group
table-header-group
table-footer-group
table-row
table-column-group
table-column
table-cell
table-caption
-webkit-box
-webkit-inline-box
flex
inline-flex
contents
grid
inline-grid
flow-root
flow
-webkit-inline-flex
-webkit-flex
//none
//
// CSS_PROP_CURSOR:
// The order here must match the order of the CursorType enum in RenderStyleConstants.h.
//
auto
default
// none
context-menu
help
pointer
progress
wait
cell
crosshair
text
vertical-text
alias
// copy
move
no-drop
not-allowed
grab
grabbing
e-resize
n-resize
ne-resize
nw-resize
s-resize
se-resize
sw-resize
w-resize
ew-resize
ns-resize
nesw-resize
nwse-resize
col-resize
row-resize
all-scroll
zoom-in
zoom-out
-webkit-grab
-webkit-grabbing
-webkit-zoom-in
-webkit-zoom-out
//
// CSS_PROP_CURSOR_VISIBILITY:
// auto
auto-hide
//
// CSS_PROP_DIRECTION:
//
ltr
rtl
//
// CSS_PROP_TEXT_TRANSFORM:
//
capitalize
uppercase
lowercase
full-size-kana
// full-width
// none
//
// CSS_PROP_VISIBILITY:
//
visible
//hidden
collapse
//
// Unordered rest
//
a3
a4
a5
above
absolute
always
avoid
b4
b5
below
bidi-override
blink
both
close-quote
crop
cross
embed
fixed
hand
hide
higher
invert
inverted
isolate-override
plaintext
-webkit-isolate
-webkit-isolate-override
-webkit-plaintext
landscape
ledger
legal
letter
level
line-through
local
loud
lower
mix
no-close-quote
no-open-quote
nowrap
open-quote
overline
portrait
pre
pre-line
pre-wrap
relative
scroll
separate
show
static
thick
thin
underline
wavy
ink
objects
// CSS3 Values
// CSS_PROP_BOX_ALIGN
stretch
start
end
//center
//baseline
// CSS_PROP_BOX_DECORATION_BREAK
clone enable-if=ENABLE_CSS_BOX_DECORATION_BREAK
slice enable-if=ENABLE_CSS_BOX_DECORATION_BREAK
// CSS_PROP_BOX_DIRECTION
// normal
reverse
// CSS_PROP_BOX_ORIENT
horizontal
vertical
inline-axis
block-axis
// CSS_PROP_BOX_PACK
// start
// end
// center
// justify
// CSS_PROP_BOX_LINES
single
multiple
// align-content / align-tracks
flex-start
flex-end
// center
space-between
space-around
space-evenly
// stretch
// CSS_PROP_ALIGN_ITEMS / CSS_PROP_ALIGN_SELF
// flex-start
// flex-end
// center
// baseline
first-baseline
last-baseline
// stretch
// justify-content / justify-tracks
// start
// end
// flex-start
// flex-end
// center
// space-between
// space-around
// space-evenly
// stretch
// CSS_PROP_JUSTIFY_ITEMS / CSS_PROP_JUSTIFY_SELF
// auto
// stretch
// baseline
// last baseline
// first baseline
// center
// start
// end
self-start
self-end
// flex-start
// flex-end
// left
// right
unsafe
safe
legacy
// CSS_PROP_FLEX_FLOW
row
row-reverse
column
column-reverse
// nowrap
// wrap
wrap-reverse
// CSS_PROP_MARGIN_TRIM
// block
block-start
block-end
// inline
inline-start
inline-end
// CSS_PROP_MARQUEE_DIRECTION
forwards
backwards
ahead
// reverse
// left
// right
up
down
// auto
// CSS_PROP_MARQUEE_SPEED
slow
// normal
fast
// CSS_PROP_MARQUEE_REPETITION
infinite
// CSS_PROP_MARQUEE_STYLE
// none
slide
// scroll
alternate
//
// CSS_PROP__KHTML_USER_MODIFY
//
read-only
read-write
read-write-plaintext-only
//
// CSS_PROP__KHTML_USER_DRAG
//
element
//
// CSS_PROP__KHTML_USER_SELECT
//
ignore
//
// CSS_PROP_WIDTH/MIN_WIDTH/MAX_WIDTH
//
intrinsic
min-intrinsic
//
// CSS3 intrinsic dimension keywords
//
min-content
-webkit-min-content
max-content
-webkit-max-content
-webkit-fill-available
fit-content
-webkit-fit-content
//
// CSS_PROP_TEXT_OVERFLOW
//
clip
ellipsis
//
// CSS_PROP_TEXT_WRAP
//
// wrap
// nowrap
// balance
stable
pretty
//
// CSS_PROP__KHTML_MARGIN_COLLAPSE
//
// collapse
// separate
discard
//
// CSS_PROP_TEXT_*_COLOR
//
dot-dash
dot-dot-dash
wave
//
// CSS_PROP_TEXT_*_MODE
//
continuous
skip-white-space
//
// CSS_PROP_WORD_BREAK
//
break-all
keep-all
//
// CSS_PROP_WORD_WRAP
//
break-word
//
// CSS_PROP_WHITE_SPACE
//
break-spaces
//
// CSS_PROP__KHTML_NBSP_MODE
//
space
//
// CSS_PROP__KHTML_LINE_BREAK
//
// auto
loose
// normal
strict
after-white-space
anywhere
// -webkit-appearance
// The order here must match the order in the StyleAppearance enum in StyleAppearance.h.
// All appearance values that should be accepted by the parser should be listed between 'checkbox' and 'textarea':
checkbox
radio
push-button
square-button
button
default-button
listbox
menulist
menulist-button
meter
progress-bar
slider-horizontal
slider-vertical
searchfield
-apple-pay-button enable-if=ENABLE_APPLE_PAY
attachment enable-if=ENABLE_ATTACHMENT_ELEMENT
borderless-attachment enable-if=ENABLE_ATTACHMENT_ELEMENT
textarea
textfield
//
// CSS_PROP_BORDER_IMAGE
//
// stretch
// repeat
round
//
// CSS_PROP_BACKGROUND_CLIP/ORIGIN
//
// border/content/padding are deprecated and ultimately will only apply to the -webkit- form of these properties.
// border-box/content-box/padding-box should be used instead.
//
border
border-box
content
content-box
padding
padding-box
// text
-webkit-text
// block-step-insert
margin
//
// CSS_PROP_MASK_CLIP
//
// Same as background-clip above, except with some extra values.
no-clip
//
// CSS_PROP_MASK_COMPOSITE
//
add
subtract
intersect
exclude
//
// Variables Implementation
//
var
-internal-variable-value
//
// Environment Variables
//
env
//
// CSS_PROP_BREAK_BEFORE/AFTER/INSIDE
//
avoid-column
avoid-page
page
recto
region
verso
// CSS Shapes
margin-box
// clip-path
stroke-box
view-box
//
// background-size
//
contain
cover
//
// CSS_PROP__KHTML_RTL_ORDERING
//
logical
visual
//
// CSS_PROP__WEBKIT_ANIMATION_DIRECTION
//
// alternate
alternate-reverse
//
// CSS_PROP__WEBKIT_ANIMATION_FILL_MODE
//
// forwards
// backwards
// both
//
// CSS_PROP__WEBKIT_ANIMATION_ITERATION_COUNT
//
// infinite