Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: third_party/WebKit/Source/core/css/CSSValueKeywords.json5

Issue 2620883002: Convert Settings.in, CSSValueKeywords.in, SVGCSSValueKeywords.in to json5 (Closed)
Patch Set: Fix comment indent in data Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 {
2 // The mode argument is used to limit the keyword to be used only for certain
3 // CSSParserModes. Values that have the prefix -internal- are only allowed by
4 // CSSParserModes listed in allowInternalPropertyAndValue()
5
6 parameters: {
7 mode: {},
8 },
9
10 //
11 // CSS value names
12 //
13
14 data: [
15
16 "inherit",
17 "initial",
18 //
19 // outline-style
20 // border-top-style
21 // border-bottom-style
22 // border-left-style
23 // border-right-style
24 // The order here must match the order of the EBorderStyle enum in ComputedSty leConstants.h.
25 "none",
26 "hidden",
27 "inset",
28 "groove",
29 "outset",
30 "ridge",
31 "dotted",
32 "dashed",
33 "solid",
34 "double",
35
36 //
37 // font
38 //
39 "caption",
40 "icon",
41 "menu",
42 "message-box",
43 "small-caption",
44 "-webkit-mini-control",
45 "-webkit-small-control",
46 "-webkit-control",
47 "status-bar",
48
49 //
50 // font-style
51 //
52 //normal
53 "italic",
54 "oblique",
55 // The following is only allowed in @font-face:
56 "all",
57
58 // font-variant-ligatures:
59 //
60 // normal
61 "common-ligatures",
62 "no-common-ligatures",
63 "discretionary-ligatures",
64 "no-discretionary-ligatures",
65 "historical-ligatures",
66 "no-historical-ligatures",
67 "contextual",
68 "no-contextual",
69
70 // font-variant-caps:
71 //
72 // normal
73 "small-caps",
74 "all-small-caps",
75 "petite-caps",
76 "all-petite-caps",
77 "unicase",
78 "titling-caps",
79
80 // font-variant-numeric
81 // normal
82 "lining-nums",
83 "oldstyle-nums",
84 "proportional-nums",
85 "tabular-nums",
86 "diagonal-fractions",
87 "stacked-fractions",
88 "ordinal",
89 "slashed-zero",
90
91 //
92 // font-weigth
93 //
94 "normal",
95 "bold",
96 "bolder",
97 "lighter",
98 "100",
99 "200",
100 "300",
101 "400",
102 "500",
103 "600",
104 "700",
105 "800",
106 "900",
107
108 //
109 // font-stretch
110 //
111 "ultra-condensed",
112 "extra-condensed",
113 "condensed",
114 "semi-condensed",
115 "semi-expanded",
116 "expanded",
117 "extra-expanded",
118 "ultra-expanded",
119
120 //
121 // font-size
122 //
123 "xx-small",
124 "x-small",
125 "small",
126 "medium",
127 "large",
128 "x-large",
129 "xx-large",
130 "-webkit-xxx-large",
131 "smaller",
132 "larger",
133
134 //
135 // font-family (<generic-family> in CSS 2.1)
136 //
137 "serif",
138 "sans-serif",
139 "cursive",
140 "fantasy",
141 "monospace",
142 "-webkit-body",
143 "-webkit-pictograph",
144
145 //
146 // font-display
147 //
148 //auto
149 //block
150 "swap",
151 "fallback",
152 "optional",
153
154 //
155 //
156 // *-color
157 //
158 "aqua",
159 "black",
160 "blue",
161 "fuchsia",
162 "gray",
163 "green",
164 "lime",
165 "maroon",
166 "navy",
167 "olive",
168 "orange",
169 "purple",
170 "red",
171 "silver",
172 "teal",
173 "white",
174 "yellow",
175 "transparent",
176 "-webkit-link",
177 "-webkit-activelink",
178 "activeborder",
179 "activecaption",
180 "appworkspace",
181 "background",
182 "buttonface",
183 "buttonhighlight",
184 "buttonshadow",
185 "buttontext",
186 "captiontext",
187 "graytext",
188 "highlight",
189 "highlighttext",
190 "inactiveborder",
191 "inactivecaption",
192 "inactivecaptiontext",
193 "infobackground",
194 "infotext",
195 "menutext",
196 "scrollbar",
197 "threeddarkshadow",
198 "threedface",
199 "threedhighlight",
200 "threedlightshadow",
201 "threedshadow",
202 "window",
203 "windowframe",
204 "windowtext",
205 "-internal-active-list-box-selection",
206 "-internal-active-list-box-selection-text",
207 "-internal-inactive-list-box-selection",
208 "-internal-inactive-list-box-selection-text",
209 {
210 name: "-webkit-focus-ring-color",
211 mode: "QuirksOrUASheet",
212 },
213 "currentcolor",
214 "grey",
215 //
216 // Value used to implement the behavior in:
217 // https://quirks.spec.whatwg.org/#the-tables-inherit-color-from-body-quirk
218 "-internal-quirk-inherit",
219 //
220 // background-repeat
221 //
222 "repeat",
223 "repeat-x",
224 "repeat-y",
225 "no-repeat",
226 // round
227 // space
228 //
229 // -webkit-mask-composite
230 //
231 "clear",
232 "copy",
233 "source-over",
234 "source-in",
235 "source-out",
236 "source-atop",
237 "destination-over",
238 "destination-in",
239 "destination-out",
240 "destination-atop",
241 "xor",
242 // highlight
243 "plus-lighter",
244 //
245 // vertical-align
246 //
247 "baseline",
248 "middle",
249 "sub",
250 "super",
251 "text-top",
252 "text-bottom",
253 "top",
254 "bottom",
255 // HTML alignment MIDDLE has no corresponding CSS alignment
256 "-webkit-baseline-middle",
257 //
258 // text-align
259 // The order of this enum must match the order found in CSSParserFastPaths::is ValidKeywordPropertyAndValue().
260 //
261 "-webkit-auto",
262 "left",
263 "right",
264 "center",
265 "justify",
266 "-webkit-left",
267 "-webkit-right",
268 "-webkit-center",
269 "-webkit-match-parent",
270 "-internal-center",
271 //
272 // text-justify
273 //
274 //auto
275 //none
276 "inter-word",
277 "distribute",
278 //
279 // list-style-position
280 //
281 "outside",
282 "inside",
283 //
284 // list-style-type
285 // The order of this enum must match the order found in CSSParserFastPaths::is ValidKeywordPropertyAndValue().
286 //
287 "disc",
288 "circle",
289 "square",
290 "decimal",
291 "decimal-leading-zero",
292 "arabic-indic",
293 "bengali",
294 "cambodian",
295 "khmer",
296 "devanagari",
297 "gujarati",
298 "gurmukhi",
299 "kannada",
300 "lao",
301 "malayalam",
302 "mongolian",
303 "myanmar",
304 "oriya",
305 "persian",
306 "urdu",
307 "telugu",
308 "tibetan",
309 "thai",
310 "lower-roman",
311 "upper-roman",
312 "lower-greek",
313 "lower-alpha",
314 "lower-latin",
315 "upper-alpha",
316 "upper-latin",
317 "cjk-earthly-branch",
318 "cjk-heavenly-stem",
319 "ethiopic-halehame",
320 "ethiopic-halehame-am",
321 "ethiopic-halehame-ti-er",
322 "ethiopic-halehame-ti-et",
323 "hangul",
324 "hangul-consonant",
325 "korean-hangul-formal",
326 "korean-hanja-formal",
327 "korean-hanja-informal",
328 "hebrew",
329 "armenian",
330 "lower-armenian",
331 "upper-armenian",
332 "georgian",
333 "cjk-ideographic",
334 "simp-chinese-formal",
335 "simp-chinese-informal",
336 "trad-chinese-formal",
337 "trad-chinese-informal",
338 "hiragana",
339 "katakana",
340 "hiragana-iroha",
341 "katakana-iroha",
342 //none
343 //
344 // display
345 // The order of this enum must match the order found in CSSParserFastPaths::is ValidKeywordPropertyAndValue().
346 //
347 "inline",
348 "block",
349 "list-item",
350 "inline-block",
351 "table",
352 "inline-table",
353 "table-row-group",
354 "table-header-group",
355 "table-footer-group",
356 "table-row",
357 "table-column-group",
358 "table-column",
359 "table-cell",
360 "table-caption",
361 "-webkit-box",
362 "-webkit-inline-box",
363 "flex",
364 "inline-flex",
365 "grid",
366 "inline-grid",
367 "contents",
368 //none
369 "-webkit-flex",
370 "-webkit-inline-flex",
371 //
372 // cursor
373 // The order of this enum must match the order found in CSSPropertyParser::con sumeCursor().
374 //
375 "auto",
376 "crosshair",
377 "default",
378 "pointer",
379 "move",
380 "vertical-text",
381 "cell",
382 "context-menu",
383 "alias",
384 // copy
385 "progress",
386 "no-drop",
387 "not-allowed",
388 "zoom-in",
389 "zoom-out",
390 "e-resize",
391 "ne-resize",
392 "nw-resize",
393 "n-resize",
394 "se-resize",
395 "sw-resize",
396 "s-resize",
397 "w-resize",
398 "ew-resize",
399 "ns-resize",
400 "nesw-resize",
401 "nwse-resize",
402 "col-resize",
403 "row-resize",
404 "text",
405 "wait",
406 "help",
407 "all-scroll",
408 "-webkit-grab",
409 "-webkit-grabbing",
410 "-webkit-zoom-in",
411 "-webkit-zoom-out",
412 // none
413 //
414 // direction
415 //
416 "ltr",
417 "rtl",
418 //
419 // text-transform
420 //
421 "capitalize",
422 "uppercase",
423 "lowercase",
424 //none
425 //
426 // visibility
427 //
428 "visible",
429 //hidden
430 "collapse",
431 //
432 // Unordered rest
433 //
434 "a3",
435 "a4",
436 "a5",
437 "above",
438 "absolute",
439 "always",
440 "avoid",
441 "b4",
442 "b5",
443 "below",
444 "bidi-override",
445 "blink",
446 "both",
447 "close-quote",
448 "embed",
449 "fixed",
450 "hand",
451 "hide",
452 "isolate",
453 "isolate-override",
454 "plaintext",
455 "-webkit-isolate",
456 "-webkit-isolate-override",
457 "-webkit-plaintext",
458 "landscape",
459 "ledger",
460 "legal",
461 "letter",
462 "line-through",
463 "local",
464 "no-close-quote",
465 "no-open-quote",
466 "nowrap",
467 "open-quote",
468 "overlay",
469 "overline",
470 "portrait",
471 "pre",
472 "pre-line",
473 "pre-wrap",
474 "relative",
475 "scroll",
476 "separate",
477 "show",
478 "static",
479 "thick",
480 "thin",
481 "underline",
482 "wavy",
483 "-webkit-nowrap",
484
485 // CSS3 Values
486 // box-align
487 "stretch",
488 "start",
489 "end",
490 //center
491 //baseline
492
493 // box-decoration-break
494 "clone",
495 "slice",
496
497 // box-direction
498 // normal
499 "reverse",
500
501 // box-orient
502 "horizontal",
503 "vertical",
504 "inline-axis",
505 "block-axis",
506
507 // box-pack
508 // start
509 // end
510 // center
511 // justify
512
513 // box-lines
514 "single",
515 "multiple",
516
517 // align-content
518 // start
519 // end
520 "flex-start",
521 "flex-end",
522 // center
523 "space-between",
524 "space-around",
525 "space-evenly",
526 // stretch
527 "unsafe",
528 "safe",
529
530 // align-items / align-self
531 // flex-start
532 // flex-end
533 // center
534 // baseline
535 // stretch
536
537 // justify-content
538 // start
539 // end
540 // flex-start
541 // flex-end
542 // center
543 // space-between
544 // space-around
545 // space-evenly
546 // stretch
547 // unsafe
548 // safe
549
550
551 // flex-flow
552 "row",
553 "row-reverse",
554 "column",
555 "column-reverse",
556 // nowrap
557 "wrap",
558 "wrap-reverse",
559
560 // grid-auto-flow
561 "auto-flow",
562 "dense",
563
564 //
565 // -webkit-user-modify
566 //
567 "read-only",
568 "read-write",
569 "read-write-plaintext-only",
570
571 //
572 // -webkit-user-drag
573 //
574 "element",
575
576 //
577 // CSS3 intrinsic dimension keywords
578 //
579 "-webkit-min-content",
580 "-webkit-max-content",
581 "-webkit-fill-available",
582 "-webkit-fit-content",
583 "min-content",
584 "max-content",
585 "fit-content",
586
587 //
588 // text-overflow
589 //
590 "clip",
591 "ellipsis",
592
593 //
594 // text-decoration-skip
595 //
596 "objects",
597 "ink",
598
599 //
600 // -webkit-margin-collapse
601 //
602 // collapse
603 // separate
604 "discard",
605
606 //
607 // word-break
608 //
609 "break-all",
610 "keep-all",
611
612 //
613 // word-wrap
614 //
615 "break-word",
616
617 //
618 // nbsp-mode
619 //
620 "space",
621
622 //
623 // -webkit-line-break
624 //
625 // auto
626 "loose",
627 // normal
628 "strict",
629 "after-white-space",
630
631 // hyphens
632 "manual",
633
634 // -webkit-appearance
635 // The order here must match the order in the ControlPart enum in ThemeTypes.h .
636 // All appearance values that should be accepted by the parser should be liste d between 'checkbox' and 'textarea':
637 "checkbox",
638 "radio",
639 "push-button",
640 "square-button",
641 "button",
642 "button-bevel",
643 "inner-spin-button",
644 "listbox",
645 "listitem",
646 "media-enter-fullscreen-button",
647 "media-exit-fullscreen-button",
648 "media-fullscreen-volume-slider",
649 "media-fullscreen-volume-slider-thumb",
650 "media-mute-button",
651 "media-play-button",
652 "media-overlay-play-button",
653 "media-toggle-closed-captions-button",
654 "media-slider",
655 "media-sliderthumb",
656 "media-volume-slider-container",
657 "media-volume-slider",
658 "media-volume-sliderthumb",
659 "media-controls-background",
660 "media-controls-fullscreen-background",
661 "media-current-time-display",
662 "media-time-remaining-display",
663 "-internal-media-cast-off-button",
664 "-internal-media-overlay-cast-off-button",
665 "-internal-media-track-selection-checkmark",
666 "-internal-media-closed-captions-icon",
667 "-internal-media-subtitles-icon",
668 "-internal-media-overflow-button",
669 "-internal-media-download-button",
670 "menulist",
671 "menulist-button",
672 "menulist-text",
673 "menulist-textfield",
674 "meter",
675 "progress-bar",
676 "progress-bar-value",
677 "slider-horizontal",
678 "slider-vertical",
679 "sliderthumb-horizontal",
680 "sliderthumb-vertical",
681 "caret",
682 "searchfield",
683 "searchfield-cancel-button",
684 "textfield",
685 "textarea",
686 // An appearance value that should not be accepted by the parser:
687 "caps-lock-indicator",
688
689 //
690 // border-image
691 //
692 // stretch
693 // repeat
694 "round",
695
696 //
697 // background-clip/background-origin
698 //
699 // border/content/padding are deprecated and ultimately will only apply to the -webkit- form of these properties.
700 // border-box/content-box/padding-box should be used instead.
701 //
702 "border",
703 "border-box",
704 "content",
705 "content-box",
706 "padding",
707 "padding-box",
708
709 // CSS 3 SHAPES
710 "margin-box",
711
712 //
713 // background-size
714 //
715 "contain",
716 "cover",
717
718 //
719 // -webkit-rtl-ordering
720 //
721 "logical",
722 "visual",
723
724 //
725 // animation-direction
726 //
727 "alternate",
728 "alternate-reverse",
729
730 //
731 // animation-fill-mode
732 //
733 "forwards",
734 "backwards",
735 // both
736
737 //
738 // animation-iteration-count
739 "infinite",
740
741 //
742 // animation-play-state
743 //
744 "running",
745 "paused",
746
747 //
748 // transform-style
749 //
750 "flat",
751 "preserve-3d",
752
753 //
754 // transition-timing-function
755 // animation-timing-function
756 //
757 "ease",
758 "linear",
759 "ease-in",
760 "ease-out",
761 "ease-in-out",
762 "step-start",
763 "step-middle",
764 "step-end",
765 "steps",
766 "cubic-bezier",
767
768 //
769 // zoom
770 //
771 "document",
772 "reset",
773
774 //
775 // user-zoom
776 //
777 // fixed
778 "zoom",
779
780 //
781 // pointer-events
782 //
783 "visiblePainted",
784 "visibleFill",
785 "visibleStroke",
786 //visible
787 "painted",
788 "fill",
789 "stroke",
790 "bounding-box",
791 //all
792 //none
793
794 //
795 // speech
796 //
797 "spell-out",
798 "digits",
799 "literal-punctuation",
800 "no-punctuation",
801
802 //
803 // -webkit-font-smoothing
804 //
805 // auto
806 // none
807 "antialiased",
808 "subpixel-antialiased",
809
810 // text-rendering
811 //auto
812 "optimizeSpeed",
813 "optimizeLegibility",
814 "geometricPrecision",
815
816 // -webkit-color-adjust
817 "economy",
818 "exact",
819
820 // -webkit-writing-mode
821 // SVG compatibility
822 "lr",
823 "rl",
824 "tb",
825 "lr-tb",
826 "rl-tb",
827 "tb-rl",
828 // Standard values from CSS3
829 "horizontal-tb",
830 "vertical-rl",
831 "vertical-lr",
832
833 // -webkit-ruby-position
834 "after",
835 "before",
836
837 // -webkit-text-emphasis-position
838 "over",
839 "under",
840
841 // -webkit-text-emphasis-style
842 "filled",
843 "open",
844 "dot",
845 // circle
846 "double-circle",
847 "triangle",
848 "sesame",
849
850 // -webkit-radial-gradient
851 // circle
852 "ellipse",
853 "closest-side",
854 "closest-corner",
855 "farthest-side",
856 "farthest-corner",
857 // contain
858 // cover
859
860 // text-orientation/-webkit-text-orientation
861 "mixed",
862 "sideways",
863 "sideways-right",
864 "upright",
865 "vertical-right",
866
867 // -webkit-font-feature-settings
868 "on",
869 "off",
870
871 // image-rendering
872 //auto
873 //optimizeSpeed
874 "optimizeQuality",
875 "pixelated",
876 "-webkit-optimize-contrast",
877
878 // shape-outside
879 "nonzero",
880 "evenodd",
881 "at",
882 // closest-side
883 // farthest-side
884
885 "alphabetic",
886
887 // (display-mode:) media feature
888 "fullscreen",
889 "standalone",
890 "minimal-ui",
891 "browser",
892
893 // position
894 "sticky",
895
896 // (pointer:) media feature
897 // none
898 "coarse",
899 "fine",
900
901 // (hover:) media feature
902 // none
903 "on-demand",
904 "hover",
905
906 // blend modes
907 // normal
908 "multiply",
909 "screen",
910 // overlay
911 "darken",
912 "lighten",
913 "color-dodge",
914 "color-burn",
915 "hard-light",
916 "soft-light",
917 "difference",
918 "exclusion",
919 "hue",
920 "saturation",
921 "color",
922 "luminosity",
923
924 // object-fit
925 "scale-down",
926
927 // column-fill
928 "balance",
929
930 // overflow
931 "-webkit-paged-x",
932 "-webkit-paged-y",
933
934 // -webkit-app-region
935 "drag",
936 "no-drag",
937
938 // grid-{column|row}-{start|end}
939 "span",
940
941 // grid-template-{columns|rows}
942 "minmax",
943
944 // text-indent
945 "each-line",
946 //hanging // hanging exists in SVGCSSValueKeywords.in
947
948 // (scan:) media feature
949 "progressive",
950 "interlace",
951
952 //
953 // paint-order
954 //
955 // normal
956 // fill
957 // stroke
958 "markers",
959
960 //
961 // CSS3 viewport-length keywords
962 //
963 "-internal-extend-to-zoom",
964
965 // isolation
966 // auto
967 // isolate
968
969 // touch-action
970 "pan-x",
971 "pan-y",
972 "pan-left",
973 "pan-right",
974 "pan-up",
975 "pan-down",
976 "manipulation",
977 "pinch-zoom",
978
979 // justify-items / justify-self
980 // auto
981 // stretch
982 // baseline
983 "last-baseline",
984 // center
985 // start
986 // end
987 "self-start",
988 "self-end",
989 // flex-start
990 // flex-end
991 // left
992 // right
993 // unsafe
994 // safe
995 "legacy",
996
997 // scroll-behavior
998 // auto
999 "smooth",
1000
1001 // will-change
1002 // auto
1003 // contents
1004 "scroll-position",
1005
1006 // all
1007 // initial
1008 // inherit
1009 "revert",
1010 "unset",
1011
1012 // background-image, etc.
1013 "linear-gradient",
1014 "radial-gradient",
1015 "repeating-linear-gradient",
1016 "repeating-radial-gradient",
1017 "paint",
1018 "-webkit-cross-fade",
1019 "-webkit-gradient",
1020 "-webkit-linear-gradient",
1021 "-webkit-radial-gradient",
1022 "-webkit-repeating-linear-gradient",
1023 "-webkit-repeating-radial-gradient",
1024 "-webkit-image-set",
1025
1026 // deprecated gradients
1027 "from",
1028 "to",
1029 "color-stop",
1030 "radial",
1031
1032 // content
1033 "attr",
1034 "counter",
1035 "counters",
1036
1037 // clip
1038 "rect",
1039
1040 // shapes
1041 "polygon",
1042
1043 // @font-face src
1044 "format",
1045
1046 // (-webkit-)filter
1047 "invert",
1048 "grayscale",
1049 "sepia",
1050 "saturate",
1051 "hue-rotate",
1052 "opacity",
1053 "brightness",
1054 "contrast",
1055 "blur",
1056 "drop-shadow",
1057 "url",
1058
1059 // colors
1060 "rgb",
1061 "rgba",
1062 "hsl",
1063 "hsla",
1064
1065 // transform
1066 "matrix",
1067 "matrix3d",
1068 "perspective",
1069 "rotate",
1070 "rotateX",
1071 "rotateY",
1072 "rotateZ",
1073 "rotate3d",
1074 "scale",
1075 "scaleX",
1076 "scaleY",
1077 "scaleZ",
1078 "scale3d",
1079 "skew",
1080 "skewX",
1081 "skewY",
1082 "translate",
1083 "translateX",
1084 "translateY",
1085 "translateZ",
1086 "translate3d",
1087
1088 // motion path
1089 "path",
1090
1091 "calc",
1092 "-webkit-calc",
1093
1094 // scroll-snap-type
1095 // none
1096 "mandatory",
1097 "proximity",
1098 "from-image",
1099
1100 // containment
1101 // paint
1102 "style",
1103 "layout",
1104 "size",
1105
1106 // grid auto-repeat
1107 "auto-fill",
1108 "auto-fit",
1109
1110 "var",
1111 "-internal-variable-value",
1112
1113 // break-before, break-after, break-inside
1114 "avoid-page",
1115 "page",
1116 "recto",
1117 "verso",
1118 "avoid-column",
1119
1120 // shape
1121 // rect
1122 // round
1123
1124 ]
1125 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698