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

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

Issue 2921223002: [CSS Typed OM] Hook up getting CSSUnitValues from inline StylePropertyMaps (Closed)
Patch Set: Fix missed LayoutTests 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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 type_name: "LayoutUnit", 897 type_name: "LayoutUnit",
898 default_value: "LayoutUnit(3)", 898 default_value: "LayoutUnit(3)",
899 field_group: "surround", 899 field_group: "surround",
900 }, 900 },
901 { 901 {
902 name: "bottom", 902 name: "bottom",
903 api_class: "CSSPropertyAPIMargin", 903 api_class: "CSSPropertyAPIMargin",
904 api_methods: ["parseSingleValue"], 904 api_methods: ["parseSingleValue"],
905 converter: "ConvertLengthOrAuto", 905 converter: "ConvertLengthOrAuto",
906 interpolable: true, 906 interpolable: true,
907 typedom_types: ["Length", "Percent"],
907 keywords: ["auto"], 908 keywords: ["auto"],
908 field_template: "external", 909 field_template: "external",
909 include_paths: ["platform/Length.h"], 910 include_paths: ["platform/Length.h"],
910 type_name: "Length", 911 type_name: "Length",
911 field_group: "surround", 912 field_group: "surround",
912 default_value: "Length()", 913 default_value: "Length()",
913 }, 914 },
914 { 915 {
915 name: "box-shadow", 916 name: "box-shadow",
916 converter: "ConvertShadowList", 917 converter: "ConvertShadowList",
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 api_class: "CSSPropertyAPIGridTemplateLine", 1268 api_class: "CSSPropertyAPIGridTemplateLine",
1268 custom_all: true, 1269 custom_all: true,
1269 runtime_flag: "CSSGridLayout", 1270 runtime_flag: "CSSGridLayout",
1270 }, 1271 },
1271 { 1272 {
1272 name: "height", 1273 name: "height",
1273 api_class: "CSSPropertyAPIWidthOrHeight", 1274 api_class: "CSSPropertyAPIWidthOrHeight",
1274 converter: "ConvertLengthSizing", 1275 converter: "ConvertLengthSizing",
1275 is_descriptor: true, 1276 is_descriptor: true,
1276 interpolable: true, 1277 interpolable: true,
1278 typedom_types: ["Length", "Percent"],
1277 keywords: ["auto", "fit-content", "min-content", "max-content"], 1279 keywords: ["auto", "fit-content", "min-content", "max-content"],
1278 field_template: "external", 1280 field_template: "external",
1279 include_paths: ["platform/Length.h"], 1281 include_paths: ["platform/Length.h"],
1280 type_name: "Length", 1282 type_name: "Length",
1281 field_group: "box", 1283 field_group: "box",
1282 default_value: "Length()", 1284 default_value: "Length()",
1283 }, 1285 },
1284 { 1286 {
1285 name: "hyphens", 1287 name: "hyphens",
1286 inherited: true, 1288 inherited: true,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 converter: "ConvertSelfOrDefaultAlignmentData", 1333 converter: "ConvertSelfOrDefaultAlignmentData",
1332 initial: "InitialSelfAlignment", 1334 initial: "InitialSelfAlignment",
1333 runtime_flag: "CSSGridLayout", 1335 runtime_flag: "CSSGridLayout",
1334 }, 1336 },
1335 { 1337 {
1336 name: "left", 1338 name: "left",
1337 api_class: "CSSPropertyAPIMargin", 1339 api_class: "CSSPropertyAPIMargin",
1338 api_methods: ["parseSingleValue"], 1340 api_methods: ["parseSingleValue"],
1339 converter: "ConvertLengthOrAuto", 1341 converter: "ConvertLengthOrAuto",
1340 interpolable: true, 1342 interpolable: true,
1343 typedom_types: ["Length", "Percent"],
1341 keywords: ["auto"], 1344 keywords: ["auto"],
1342 field_template: "external", 1345 field_template: "external",
1343 include_paths: ["platform/Length.h"], 1346 include_paths: ["platform/Length.h"],
1344 type_name: "Length", 1347 type_name: "Length",
1345 field_group: "surround", 1348 field_group: "surround",
1346 default_value: "Length()", 1349 default_value: "Length()",
1347 }, 1350 },
1348 { 1351 {
1349 name: "letter-spacing", 1352 name: "letter-spacing",
1350 api_class: "CSSPropertyAPILetterAndWordSpacing", 1353 api_class: "CSSPropertyAPILetterAndWordSpacing",
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1791 { 1794 {
1792 name: "resize", 1795 name: "resize",
1793 custom_value: true, 1796 custom_value: true,
1794 }, 1797 },
1795 { 1798 {
1796 name: "right", 1799 name: "right",
1797 api_class: "CSSPropertyAPIMargin", 1800 api_class: "CSSPropertyAPIMargin",
1798 api_methods: ["parseSingleValue"], 1801 api_methods: ["parseSingleValue"],
1799 converter: "ConvertLengthOrAuto", 1802 converter: "ConvertLengthOrAuto",
1800 interpolable: true, 1803 interpolable: true,
1804 typedom_types: ["Length", "Percent"],
1801 keywords: ["auto"], 1805 keywords: ["auto"],
1802 field_template: "external", 1806 field_template: "external",
1803 include_paths: ["platform/Length.h"], 1807 include_paths: ["platform/Length.h"],
1804 type_name: "Length", 1808 type_name: "Length",
1805 field_group: "surround", 1809 field_group: "surround",
1806 default_value: "Length()", 1810 default_value: "Length()",
1807 }, 1811 },
1808 { 1812 {
1809 name: "r", 1813 name: "r",
1810 api_class: "CSSPropertyAPIStrokeOrLength", 1814 api_class: "CSSPropertyAPIStrokeOrLength",
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
2159 default_value: "TextUnderlinePosition::kAuto", 2163 default_value: "TextUnderlinePosition::kAuto",
2160 field_size: 1, 2164 field_size: 1,
2161 field_group: "rare-inherited", 2165 field_group: "rare-inherited",
2162 }, 2166 },
2163 { 2167 {
2164 name: "top", 2168 name: "top",
2165 api_class: "CSSPropertyAPIMargin", 2169 api_class: "CSSPropertyAPIMargin",
2166 api_methods: ["parseSingleValue"], 2170 api_methods: ["parseSingleValue"],
2167 converter: "ConvertLengthOrAuto", 2171 converter: "ConvertLengthOrAuto",
2168 interpolable: true, 2172 interpolable: true,
2173 typedom_types: ["Length", "Percent"],
2169 keywords: ["auto"], 2174 keywords: ["auto"],
2170 field_template: "external", 2175 field_template: "external",
2171 include_paths: ["platform/Length.h"], 2176 include_paths: ["platform/Length.h"],
2172 type_name: "Length", 2177 type_name: "Length",
2173 field_group: "surround", 2178 field_group: "surround",
2174 default_value: "Length()", 2179 default_value: "Length()",
2175 }, 2180 },
2176 { 2181 {
2177 name: "touch-action", 2182 name: "touch-action",
2178 api_class: true, 2183 api_class: true,
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
2727 type_name: "short", 2732 type_name: "short",
2728 default_value: "2", 2733 default_value: "2",
2729 field_group: "rare-inherited", 2734 field_group: "rare-inherited",
2730 }, 2735 },
2731 { 2736 {
2732 name: "width", 2737 name: "width",
2733 api_class: "CSSPropertyAPIWidthOrHeight", 2738 api_class: "CSSPropertyAPIWidthOrHeight",
2734 converter: "ConvertLengthSizing", 2739 converter: "ConvertLengthSizing",
2735 is_descriptor: true, 2740 is_descriptor: true,
2736 interpolable: true, 2741 interpolable: true,
2742 typedom_types: ["Length", "Percent"],
2737 keywords: ["auto", "fit-content", "min-content", "max-content"], 2743 keywords: ["auto", "fit-content", "min-content", "max-content"],
2738 field_template: "external", 2744 field_template: "external",
2739 include_paths: ["platform/Length.h"], 2745 include_paths: ["platform/Length.h"],
2740 type_name: "Length", 2746 type_name: "Length",
2741 field_group: "box", 2747 field_group: "box",
2742 default_value: "Length()" 2748 default_value: "Length()"
2743 }, 2749 },
2744 { 2750 {
2745 name: "will-change", 2751 name: "will-change",
2746 api_class: true, 2752 api_class: true,
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
3532 { 3538 {
3533 name: "-webkit-transition-timing-function", 3539 name: "-webkit-transition-timing-function",
3534 alias_for: "transition-timing-function", 3540 alias_for: "transition-timing-function",
3535 }, 3541 },
3536 { 3542 {
3537 name: "-webkit-user-select", 3543 name: "-webkit-user-select",
3538 alias_for: "user-select", 3544 alias_for: "user-select",
3539 }, 3545 },
3540 ], 3546 ],
3541 } 3547 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698