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

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

Issue 2882603002: Implemented remaining non-grouped longhand property APIs (Closed)
Patch Set: rebased onto final utils Created 3 years, 6 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
1 { 1 {
2 // This file specifies all the CSS properties we support and the necessary 2 // This file specifies all the CSS properties we support and the necessary
3 // information for our code generation. The various supported arguments 3 // information for our code generation. The various supported arguments
4 // are described below with example usage 4 // are described below with example usage
5 5
6 parameters: { 6 parameters: {
7 // - alias_for: "other-property" 7 // - alias_for: "other-property"
8 // Properties specifying alias_for should be virtually identical to the 8 // Properties specifying alias_for should be virtually identical to the
9 // properties they alias. Minor parsing differences are allowed as long as 9 // properties they alias. Minor parsing differences are allowed as long as
10 // the CSSValues created are of the same format of the aliased property. 10 // the CSSValues created are of the same format of the aliased property.
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // Properties with StyleBuilder handling 300 // Properties with StyleBuilder handling
301 301
302 // Animation Priority properties 302 // Animation Priority properties
303 { 303 {
304 name: "animation-delay", 304 name: "animation-delay",
305 custom_all: true, 305 custom_all: true,
306 priority: "Animation", 306 priority: "Animation",
307 }, 307 },
308 { 308 {
309 name: "animation-direction", 309 name: "animation-direction",
310 api_class: true,
311 api_methods: ["parseSingleValue"],
310 custom_all: true, 312 custom_all: true,
311 keywords: ["normal", "reverse", "alternate", "alternate-reverse"], 313 keywords: ["normal", "reverse", "alternate", "alternate-reverse"],
312 priority: "Animation", 314 priority: "Animation",
313 separator: ",", 315 separator: ",",
314 }, 316 },
315 { 317 {
316 name: "animation-duration", 318 name: "animation-duration",
317 custom_all: true, 319 custom_all: true,
318 priority: "Animation", 320 priority: "Animation",
319 }, 321 },
320 { 322 {
321 name: "animation-fill-mode", 323 name: "animation-fill-mode",
324 api_class: true,
325 api_methods: ["parseSingleValue"],
322 custom_all: true, 326 custom_all: true,
323 priority: "Animation", 327 priority: "Animation",
324 }, 328 },
325 { 329 {
326 name: "animation-iteration-count", 330 name: "animation-iteration-count",
331 api_class: true,
332 api_methods: ["parseSingleValue"],
327 custom_all: true, 333 custom_all: true,
328 keywords: ["infinite"], 334 keywords: ["infinite"],
329 priority: "Animation", 335 priority: "Animation",
330 separator: ",", 336 separator: ",",
331 }, 337 },
332 { 338 {
333 name: "animation-name", 339 name: "animation-name",
334 api_class: true, 340 api_class: true,
335 api_methods: ["parseSingleValue"], 341 api_methods: ["parseSingleValue"],
336 custom_all: true, 342 custom_all: true,
337 priority: "Animation", 343 priority: "Animation",
338 }, 344 },
339 { 345 {
340 name: "animation-play-state", 346 name: "animation-play-state",
347 api_class: true,
348 api_methods: ["parseSingleValue"],
341 custom_all: true, 349 custom_all: true,
342 priority: "Animation", 350 priority: "Animation",
343 }, 351 },
344 { 352 {
345 name: "animation-timing-function", 353 name: "animation-timing-function",
346 custom_all: true, 354 custom_all: true,
347 priority: "Animation", 355 priority: "Animation",
348 }, 356 },
349 { 357 {
350 name: "transition-delay", 358 name: "transition-delay",
351 custom_all: true, 359 custom_all: true,
352 priority: "Animation", 360 priority: "Animation",
353 }, 361 },
354 { 362 {
355 name: "transition-duration", 363 name: "transition-duration",
356 custom_all: true, 364 custom_all: true,
357 priority: "Animation", 365 priority: "Animation",
358 }, 366 },
359 { 367 {
360 name: "transition-property", 368 name: "transition-property",
369 api_class: true,
370 api_methods: ["parseSingleValue"],
361 custom_all: true, 371 custom_all: true,
362 priority: "Animation", 372 priority: "Animation",
363 }, 373 },
364 { 374 {
365 name: "transition-timing-function", 375 name: "transition-timing-function",
366 custom_all: true, 376 custom_all: true,
367 priority: "Animation", 377 priority: "Animation",
368 }, 378 },
369 379
370 // High Priority and all other font properties. 380 // High Priority and all other font properties.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 api_class: true, 485 api_class: true,
476 api_methods: ["parseSingleValue"], 486 api_methods: ["parseSingleValue"],
477 converter: "ConvertFontVariantNumeric", 487 converter: "ConvertFontVariantNumeric",
478 font: true, 488 font: true,
479 inherited: true, 489 inherited: true,
480 name_for_methods: "VariantNumeric", 490 name_for_methods: "VariantNumeric",
481 priority: "High", 491 priority: "High",
482 }, 492 },
483 { 493 {
484 name: "font-weight", 494 name: "font-weight",
495 api_class: true,
496 api_methods: ["parseSingleValue"],
485 converter: "ConvertFontWeight", 497 converter: "ConvertFontWeight",
486 is_descriptor: true, 498 is_descriptor: true,
487 font: true, 499 font: true,
488 inherited: true, 500 inherited: true,
489 interpolable: true, 501 interpolable: true,
490 name_for_methods: "Weight", 502 name_for_methods: "Weight",
491 priority: "High", 503 priority: "High",
492 type_name: "FontWeight", 504 type_name: "FontWeight",
493 }, 505 },
494 { 506 {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 { 658 {
647 name: "background-blend-mode", 659 name: "background-blend-mode",
648 custom_all: true, 660 custom_all: true,
649 }, 661 },
650 { 662 {
651 name: "background-clip", 663 name: "background-clip",
652 custom_all: true, 664 custom_all: true,
653 }, 665 },
654 { 666 {
655 name: "background-color", 667 name: "background-color",
668 api_class: true,
669 api_methods: ["parseSingleValue"],
656 custom_all: true, 670 custom_all: true,
657 interpolable: true, 671 interpolable: true,
658 }, 672 },
659 { 673 {
660 name: "background-image", 674 name: "background-image",
661 custom_all: true, 675 custom_all: true,
662 interpolable: true, 676 interpolable: true,
663 keywords: ["auto", "none"], 677 keywords: ["auto", "none"],
664 typedom_types: ["Image"], 678 typedom_types: ["Image"],
665 }, 679 },
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 typedom_types: ["Length", "Percent"], 942 typedom_types: ["Length", "Percent"],
929 keywords: ["auto"], 943 keywords: ["auto"],
930 field_template: "external", 944 field_template: "external",
931 include_paths: ["platform/Length.h"], 945 include_paths: ["platform/Length.h"],
932 type_name: "Length", 946 type_name: "Length",
933 field_group: "surround", 947 field_group: "surround",
934 default_value: "Length()", 948 default_value: "Length()",
935 }, 949 },
936 { 950 {
937 name: "box-shadow", 951 name: "box-shadow",
952 api_class: true,
953 api_methods: ["parseSingleValue"],
938 converter: "ConvertShadowList", 954 converter: "ConvertShadowList",
939 interpolable: true, 955 interpolable: true,
940 field_template: "storage_only", 956 field_template: "storage_only",
941 type_name: "ShadowList", 957 type_name: "ShadowList",
942 field_group: "rare-non-inherited", 958 field_group: "rare-non-inherited",
943 default_value: "nullptr", 959 default_value: "nullptr",
944 wrapper_pointer_name: "RefPtr", 960 wrapper_pointer_name: "RefPtr",
945 }, 961 },
946 { 962 {
947 name: "box-sizing", 963 name: "box-sizing",
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
1718 name: "object-fit", 1734 name: "object-fit",
1719 field_template: "keyword", 1735 field_template: "keyword",
1720 keywords: ["fill", "contain", "cover", "none", "scale-down"], 1736 keywords: ["fill", "contain", "cover", "none", "scale-down"],
1721 field_group: "rare-non-inherited", 1737 field_group: "rare-non-inherited",
1722 field_size: 3, 1738 field_size: 3,
1723 getter: "GetObjectFit", 1739 getter: "GetObjectFit",
1724 default_value: "fill", 1740 default_value: "fill",
1725 }, 1741 },
1726 { 1742 {
1727 name: "object-position", 1743 name: "object-position",
1744 api_class: true,
1745 api_methods: ["parseSingleValue"],
1728 converter: "ConvertPosition", 1746 converter: "ConvertPosition",
1729 interpolable: true, 1747 interpolable: true,
1730 field_template: "external", 1748 field_template: "external",
1731 type_name: "LengthPoint", 1749 type_name: "LengthPoint",
1732 include_paths: ["platform/LengthPoint.h"], 1750 include_paths: ["platform/LengthPoint.h"],
1733 field_group: "rare-non-inherited", 1751 field_group: "rare-non-inherited",
1734 default_value: "LengthPoint(Length(50.0, kPercent), Length(50.0, kPercent) )", 1752 default_value: "LengthPoint(Length(50.0, kPercent), Length(50.0, kPercent) )",
1735 }, 1753 },
1736 { 1754 {
1737 name: "offset-anchor", 1755 name: "offset-anchor",
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1948 api_class: "CSSPropertyAPIPerspective", 1966 api_class: "CSSPropertyAPIPerspective",
1949 converter: "ConvertPerspective", 1967 converter: "ConvertPerspective",
1950 interpolable: true, 1968 interpolable: true,
1951 field_template: "primitive", 1969 field_template: "primitive",
1952 type_name: "float", 1970 type_name: "float",
1953 field_group: "rare-non-inherited", 1971 field_group: "rare-non-inherited",
1954 default_value: "0.0", 1972 default_value: "0.0",
1955 }, 1973 },
1956 { 1974 {
1957 name: "perspective-origin", 1975 name: "perspective-origin",
1976 api_class: true,
1977 api_methods: ["parseSingleValue"],
1958 converter: "ConvertPosition", 1978 converter: "ConvertPosition",
1959 interpolable: true, 1979 interpolable: true,
1960 field_template: "external", 1980 field_template: "external",
1961 type_name: "LengthPoint", 1981 type_name: "LengthPoint",
1962 include_paths: ["platform/LengthPoint.h"], 1982 include_paths: ["platform/LengthPoint.h"],
1963 field_group: "rare-non-inherited", 1983 field_group: "rare-non-inherited",
1964 default_value: "LengthPoint(Length(50.0, kPercent), Length(50.0, kPercent) )", 1984 default_value: "LengthPoint(Length(50.0, kPercent), Length(50.0, kPercent) )",
1965 }, 1985 },
1966 { 1986 {
1967 name: "pointer-events", 1987 name: "pointer-events",
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
2548 }, 2568 },
2549 { 2569 {
2550 name: "text-overflow", 2570 name: "text-overflow",
2551 field_template: "keyword", 2571 field_template: "keyword",
2552 field_group: "rare-non-inherited", 2572 field_group: "rare-non-inherited",
2553 default_value: "clip", 2573 default_value: "clip",
2554 keywords: ["clip", "ellipsis"], 2574 keywords: ["clip", "ellipsis"],
2555 }, 2575 },
2556 { 2576 {
2557 name: "text-shadow", 2577 name: "text-shadow",
2578 api_class: true,
2579 api_methods: ["parseSingleValue"],
2558 converter: "ConvertShadowList", 2580 converter: "ConvertShadowList",
2559 inherited: true, 2581 inherited: true,
2560 interpolable: true, 2582 interpolable: true,
2561 field_template: "storage_only", 2583 field_template: "storage_only",
2562 type_name: "ShadowList", 2584 type_name: "ShadowList",
2563 include_paths: ["core/style/ShadowList.h"], 2585 include_paths: ["core/style/ShadowList.h"],
2564 wrapper_pointer_name: "RefPtr", 2586 wrapper_pointer_name: "RefPtr",
2565 default_value: "nullptr", 2587 default_value: "nullptr",
2566 field_group: "rare-inherited", 2588 field_group: "rare-inherited",
2567 }, 2589 },
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
2876 { 2898 {
2877 name: "-webkit-box-pack", 2899 name: "-webkit-box-pack",
2878 type_name: "EBoxPack", 2900 type_name: "EBoxPack",
2879 field_template: "keyword", 2901 field_template: "keyword",
2880 keywords: ["start", "center", "end", "justify"], 2902 keywords: ["start", "center", "end", "justify"],
2881 default_value: "start", 2903 default_value: "start",
2882 field_group: "rare-non-inherited->deprecated-flexible-box", 2904 field_group: "rare-non-inherited->deprecated-flexible-box",
2883 }, 2905 },
2884 { 2906 {
2885 name: "-webkit-box-reflect", 2907 name: "-webkit-box-reflect",
2908 api_class: true,
2909 api_methods: ["parseSingleValue"],
2886 converter: "ConvertBoxReflect", 2910 converter: "ConvertBoxReflect",
2887 field_template: "storage_only", 2911 field_template: "storage_only",
2888 type_name: "StyleReflection", 2912 type_name: "StyleReflection",
2889 field_group: "rare-non-inherited", 2913 field_group: "rare-non-inherited",
2890 default_value: "nullptr", 2914 default_value: "nullptr",
2891 wrapper_pointer_name: "RefPtr", 2915 wrapper_pointer_name: "RefPtr",
2892 include_paths: ["core/style/StyleReflection.h"], 2916 include_paths: ["core/style/StyleReflection.h"],
2893 }, 2917 },
2894 { 2918 {
2895 name: "column-count", 2919 name: "column-count",
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after
4134 { 4158 {
4135 name: "-webkit-transition-timing-function", 4159 name: "-webkit-transition-timing-function",
4136 alias_for: "transition-timing-function", 4160 alias_for: "transition-timing-function",
4137 }, 4161 },
4138 { 4162 {
4139 name: "-webkit-user-select", 4163 name: "-webkit-user-select",
4140 alias_for: "user-select", 4164 alias_for: "user-select",
4141 }, 4165 },
4142 ], 4166 ],
4143 } 4167 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/BUILD.gn ('k') | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698