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

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

Issue 2882603002: Implemented remaining non-grouped longhand property APIs (Closed)
Patch Set: implemented single property apis using script 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 { 639 {
628 name: "background-blend-mode", 640 name: "background-blend-mode",
629 custom_all: true, 641 custom_all: true,
630 }, 642 },
631 { 643 {
632 name: "background-clip", 644 name: "background-clip",
633 custom_all: true, 645 custom_all: true,
634 }, 646 },
635 { 647 {
636 name: "background-color", 648 name: "background-color",
649 api_class: true,
650 api_methods: ["parseSingleValue"],
637 custom_all: true, 651 custom_all: true,
638 interpolable: true, 652 interpolable: true,
639 }, 653 },
640 { 654 {
641 name: "background-image", 655 name: "background-image",
642 custom_all: true, 656 custom_all: true,
643 interpolable: true, 657 interpolable: true,
644 keywords: ["auto", "none"], 658 keywords: ["auto", "none"],
645 typedom_types: ["Image"], 659 typedom_types: ["Image"],
646 }, 660 },
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 typedom_types: ["Length", "Percent"], 923 typedom_types: ["Length", "Percent"],
910 keywords: ["auto"], 924 keywords: ["auto"],
911 field_template: "external", 925 field_template: "external",
912 include_paths: ["platform/Length.h"], 926 include_paths: ["platform/Length.h"],
913 type_name: "Length", 927 type_name: "Length",
914 field_group: "surround", 928 field_group: "surround",
915 default_value: "Length()", 929 default_value: "Length()",
916 }, 930 },
917 { 931 {
918 name: "box-shadow", 932 name: "box-shadow",
933 api_class: true,
934 api_methods: ["parseSingleValue"],
919 converter: "ConvertShadowList", 935 converter: "ConvertShadowList",
920 interpolable: true, 936 interpolable: true,
921 }, 937 },
922 { 938 {
923 name: "box-sizing", 939 name: "box-sizing",
924 field_template: "keyword", 940 field_template: "keyword",
925 type_name: "EBoxSizing", 941 type_name: "EBoxSizing",
926 default_value: "content-box", 942 default_value: "content-box",
927 keywords: ["content-box", "border-box"], 943 keywords: ["content-box", "border-box"],
928 field_group: "box", 944 field_group: "box",
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 name: "mix-blend-mode", 1584 name: "mix-blend-mode",
1569 name_for_methods: "BlendMode", 1585 name_for_methods: "BlendMode",
1570 type_name: "blink::WebBlendMode", 1586 type_name: "blink::WebBlendMode",
1571 }, 1587 },
1572 { 1588 {
1573 name: "object-fit", 1589 name: "object-fit",
1574 type_name: "ObjectFit", 1590 type_name: "ObjectFit",
1575 }, 1591 },
1576 { 1592 {
1577 name: "object-position", 1593 name: "object-position",
1594 api_class: true,
1595 api_methods: ["parseSingleValue"],
1578 converter: "ConvertPosition", 1596 converter: "ConvertPosition",
1579 interpolable: true, 1597 interpolable: true,
1580 }, 1598 },
1581 { 1599 {
1582 name: "offset-anchor", 1600 name: "offset-anchor",
1583 api_class: true, 1601 api_class: true,
1584 api_methods: ["parseSingleValue"], 1602 api_methods: ["parseSingleValue"],
1585 converter: "ConvertPositionOrAuto", 1603 converter: "ConvertPositionOrAuto",
1586 interpolable: true, 1604 interpolable: true,
1587 runtime_flag: "CSSOffsetPositionAnchor", 1605 runtime_flag: "CSSOffsetPositionAnchor",
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1756 svg: true, 1774 svg: true,
1757 }, 1775 },
1758 { 1776 {
1759 name: "perspective", 1777 name: "perspective",
1760 api_class: "CSSPropertyAPIPerspective", 1778 api_class: "CSSPropertyAPIPerspective",
1761 converter: "ConvertPerspective", 1779 converter: "ConvertPerspective",
1762 interpolable: true, 1780 interpolable: true,
1763 }, 1781 },
1764 { 1782 {
1765 name: "perspective-origin", 1783 name: "perspective-origin",
1784 api_class: true,
1785 api_methods: ["parseSingleValue"],
1766 converter: "ConvertPosition", 1786 converter: "ConvertPosition",
1767 interpolable: true, 1787 interpolable: true,
1768 }, 1788 },
1769 { 1789 {
1770 name: "pointer-events", 1790 name: "pointer-events",
1771 independent: true, 1791 independent: true,
1772 inherited: true, 1792 inherited: true,
1773 default_value: "auto", 1793 default_value: "auto",
1774 field_template: "keyword", 1794 field_template: "keyword",
1775 keywords: [ 1795 keywords: [
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1855 converter: "ConvertSnapPoints", 1875 converter: "ConvertSnapPoints",
1856 runtime_flag: "CSSScrollSnapPoints", 1876 runtime_flag: "CSSScrollSnapPoints",
1857 }, 1877 },
1858 { 1878 {
1859 name: "scroll-snap-points-y", 1879 name: "scroll-snap-points-y",
1860 converter: "ConvertSnapPoints", 1880 converter: "ConvertSnapPoints",
1861 runtime_flag: "CSSScrollSnapPoints", 1881 runtime_flag: "CSSScrollSnapPoints",
1862 }, 1882 },
1863 { 1883 {
1864 name: "scroll-snap-destination", 1884 name: "scroll-snap-destination",
1885 api_class: true,
1886 api_methods: ["parseSingleValue"],
1865 converter: "ConvertPosition", 1887 converter: "ConvertPosition",
1866 runtime_flag: "CSSScrollSnapPoints", 1888 runtime_flag: "CSSScrollSnapPoints",
1867 }, 1889 },
1868 { 1890 {
1869 name: "scroll-snap-coordinate", 1891 name: "scroll-snap-coordinate",
1870 api_class: true, 1892 api_class: true,
1871 api_methods: ["parseSingleValue"], 1893 api_methods: ["parseSingleValue"],
1872 converter: "ConvertSnapCoordinates", 1894 converter: "ConvertSnapCoordinates",
1873 runtime_flag: "CSSScrollSnapPoints", 1895 runtime_flag: "CSSScrollSnapPoints",
1874 }, 1896 },
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
2121 default_value: "kTextJustifyAuto", 2143 default_value: "kTextJustifyAuto",
2122 field_size: 2, 2144 field_size: 2,
2123 field_group: "rare-inherited", 2145 field_group: "rare-inherited",
2124 }, 2146 },
2125 { 2147 {
2126 name: "text-overflow", 2148 name: "text-overflow",
2127 type_name: "TextOverflow", 2149 type_name: "TextOverflow",
2128 }, 2150 },
2129 { 2151 {
2130 name: "text-shadow", 2152 name: "text-shadow",
2153 api_class: true,
2154 api_methods: ["parseSingleValue"],
2131 converter: "ConvertShadowList", 2155 converter: "ConvertShadowList",
2132 inherited: true, 2156 inherited: true,
2133 interpolable: true, 2157 interpolable: true,
2134 field_template: "storage_only", 2158 field_template: "storage_only",
2135 type_name: "ShadowList", 2159 type_name: "ShadowList",
2136 include_paths: ["core/style/ShadowList.h"], 2160 include_paths: ["core/style/ShadowList.h"],
2137 wrapper_pointer_name: "RefPtr", 2161 wrapper_pointer_name: "RefPtr",
2138 default_value: "nullptr", 2162 default_value: "nullptr",
2139 field_group: "rare-inherited", 2163 field_group: "rare-inherited",
2140 }, 2164 },
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
2375 type_name: "unsigned int", 2399 type_name: "unsigned int",
2376 }, 2400 },
2377 { 2401 {
2378 name: "-webkit-box-orient", 2402 name: "-webkit-box-orient",
2379 }, 2403 },
2380 { 2404 {
2381 name: "-webkit-box-pack", 2405 name: "-webkit-box-pack",
2382 }, 2406 },
2383 { 2407 {
2384 name: "-webkit-box-reflect", 2408 name: "-webkit-box-reflect",
2409 api_class: true,
2410 api_methods: ["parseSingleValue"],
2385 converter: "ConvertBoxReflect", 2411 converter: "ConvertBoxReflect",
2386 }, 2412 },
2387 { 2413 {
2388 name: "column-count", 2414 name: "column-count",
2389 api_class: true, 2415 api_class: true,
2390 api_methods: ["parseSingleValue"], 2416 api_methods: ["parseSingleValue"],
2391 custom_all: true, 2417 custom_all: true,
2392 interpolable: true, 2418 interpolable: true,
2393 type_name: "unsigned short", 2419 type_name: "unsigned short",
2394 }, 2420 },
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
3066 { 3092 {
3067 name: "border", 3093 name: "border",
3068 longhands: "border-top-color;border-top-style;border-top-width;border-righ t-color;border-right-style;border-right-width;border-bottom-color;border-bottom- style;border-bottom-width;border-left-color;border-left-style;border-left-width; border-image-source;border-image-slice;border-image-width;border-image-outset;bo rder-image-repeat", 3094 longhands: "border-top-color;border-top-style;border-top-width;border-righ t-color;border-right-style;border-right-width;border-bottom-color;border-bottom- style;border-bottom-width;border-left-color;border-left-style;border-left-width; border-image-source;border-image-slice;border-image-width;border-image-outset;bo rder-image-repeat",
3069 }, 3095 },
3070 { 3096 {
3071 name: "border-bottom", 3097 name: "border-bottom",
3072 longhands: "border-bottom-width;border-bottom-style;border-bottom-color", 3098 longhands: "border-bottom-width;border-bottom-style;border-bottom-color",
3073 }, 3099 },
3074 { 3100 {
3075 name: "border-color", 3101 name: "border-color",
3102 api_class: true,
3103 api_methods: ["parseSingleValue"],
3076 longhands: "border-top-color;border-right-color;border-bottom-color;border -left-color", 3104 longhands: "border-top-color;border-right-color;border-bottom-color;border -left-color",
3077 }, 3105 },
3078 { 3106 {
3079 name: "border-image", 3107 name: "border-image",
3080 longhands: "border-image-source;border-image-slice;border-image-width;bord er-image-outset;border-image-repeat", 3108 longhands: "border-image-source;border-image-slice;border-image-width;bord er-image-outset;border-image-repeat",
3081 }, 3109 },
3082 { 3110 {
3083 name: "border-left", 3111 name: "border-left",
3084 longhands: "border-left-width;border-left-style;border-left-color", 3112 longhands: "border-left-width;border-left-style;border-left-color",
3085 }, 3113 },
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
3151 longhands: "grid-row-start;grid-column-start;grid-row-end;grid-column-end" , 3179 longhands: "grid-row-start;grid-column-start;grid-row-end;grid-column-end" ,
3152 runtime_flag: "CSSGridLayout", 3180 runtime_flag: "CSSGridLayout",
3153 }, 3181 },
3154 { 3182 {
3155 name: "grid-column", 3183 name: "grid-column",
3156 longhands: "grid-column-start;grid-column-end", 3184 longhands: "grid-column-start;grid-column-end",
3157 runtime_flag: "CSSGridLayout", 3185 runtime_flag: "CSSGridLayout",
3158 }, 3186 },
3159 { 3187 {
3160 name: "grid-gap", 3188 name: "grid-gap",
3189 api_class: true,
3190 api_methods: ["parseSingleValue"],
3161 longhands: "grid-row-gap;grid-column-gap", 3191 longhands: "grid-row-gap;grid-column-gap",
3162 runtime_flag: "CSSGridLayout", 3192 runtime_flag: "CSSGridLayout",
3163 }, 3193 },
3164 { 3194 {
3165 name: "grid-row", 3195 name: "grid-row",
3166 longhands: "grid-row-start;grid-row-end", 3196 longhands: "grid-row-start;grid-row-end",
3167 runtime_flag: "CSSGridLayout", 3197 runtime_flag: "CSSGridLayout",
3168 }, 3198 },
3169 { 3199 {
3170 name: "grid-template", 3200 name: "grid-template",
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
3552 { 3582 {
3553 name: "-webkit-transition-timing-function", 3583 name: "-webkit-transition-timing-function",
3554 alias_for: "transition-timing-function", 3584 alias_for: "transition-timing-function",
3555 }, 3585 },
3556 { 3586 {
3557 name: "-webkit-user-select", 3587 name: "-webkit-user-select",
3558 alias_for: "user-select", 3588 alias_for: "user-select",
3559 }, 3589 },
3560 ], 3590 ],
3561 } 3591 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698