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

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

Issue 2938983002: Implement parseShorthand API for shorthand properties, "overflow", "font" and "font-variant" (Closed)
Patch Set: Rebase cl 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 3270 matching lines...) Expand 10 before | Expand all | Expand 10 after
3281 api_class: true, 3281 api_class: true,
3282 api_methods: ["parseShorthand"], 3282 api_methods: ["parseShorthand"],
3283 }, 3283 },
3284 { 3284 {
3285 name: "flex-flow", 3285 name: "flex-flow",
3286 longhands: "flex-direction;flex-wrap", 3286 longhands: "flex-direction;flex-wrap",
3287 }, 3287 },
3288 { 3288 {
3289 name: "font", 3289 name: "font",
3290 longhands: "font-style;font-variant-ligatures;font-variant-caps;font-varia nt-numeric;font-weight;font-stretch;font-size;line-height;font-family", 3290 longhands: "font-style;font-variant-ligatures;font-variant-caps;font-varia nt-numeric;font-weight;font-stretch;font-size;line-height;font-family",
3291 api_class: true,
Bugs Nash 2017/06/16 03:51:50 'api_class' and 'api_methods' should go after 'nam
Jia 2017/06/19 03:54:41 Done.
3292 api_methods: ["parseShorthand"],
3291 }, 3293 },
3292 { 3294 {
3293 name: "font-variant", 3295 name: "font-variant",
3294 is_descriptor: true, 3296 is_descriptor: true,
3295 longhands: "font-variant-ligatures;font-variant-caps;font-variant-numeric" , 3297 longhands: "font-variant-ligatures;font-variant-caps;font-variant-numeric" ,
3298 api_class: true,
3299 api_methods: ["parseShorthand"],
3296 }, 3300 },
3297 { 3301 {
3298 name: "grid", 3302 name: "grid",
3299 longhands: "grid-template-rows;grid-template-columns;grid-template-areas;g rid-auto-flow;grid-auto-rows;grid-auto-columns;grid-column-gap;grid-row-gap", 3303 longhands: "grid-template-rows;grid-template-columns;grid-template-areas;g rid-auto-flow;grid-auto-rows;grid-auto-columns;grid-column-gap;grid-row-gap",
3300 runtime_flag: "CSSGridLayout", 3304 runtime_flag: "CSSGridLayout",
3301 }, 3305 },
3302 { 3306 {
3303 name: "place-content", 3307 name: "place-content",
3304 longhands: "align-content;justify-content", 3308 longhands: "align-content;justify-content",
3305 runtime_flag: "CSSGridLayout", 3309 runtime_flag: "CSSGridLayout",
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
3355 name: "offset", 3359 name: "offset",
3356 longhands: "offset-position;offset-path;offset-distance;offset-rotate;offs et-anchor", 3360 longhands: "offset-position;offset-path;offset-distance;offset-rotate;offs et-anchor",
3357 }, 3361 },
3358 { 3362 {
3359 name: "outline", 3363 name: "outline",
3360 longhands: "outline-color;outline-style;outline-width", 3364 longhands: "outline-color;outline-style;outline-width",
3361 }, 3365 },
3362 { 3366 {
3363 name: "overflow", 3367 name: "overflow",
3364 longhands: "overflow-x;overflow-y", 3368 longhands: "overflow-x;overflow-y",
3369 api_class: true,
3370 api_methods: ["parseShorthand"],
3365 }, 3371 },
3366 { 3372 {
3367 name: "padding", 3373 name: "padding",
3368 longhands: "padding-top;padding-right;padding-bottom;padding-left", 3374 longhands: "padding-top;padding-right;padding-bottom;padding-left",
3369 }, 3375 },
3370 { 3376 {
3371 name: "page-break-after", 3377 name: "page-break-after",
3372 longhands: "break-after", 3378 longhands: "break-after",
3373 }, 3379 },
3374 { 3380 {
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
3722 { 3728 {
3723 name: "-webkit-transition-timing-function", 3729 name: "-webkit-transition-timing-function",
3724 alias_for: "transition-timing-function", 3730 alias_for: "transition-timing-function",
3725 }, 3731 },
3726 { 3732 {
3727 name: "-webkit-user-select", 3733 name: "-webkit-user-select",
3728 alias_for: "user-select", 3734 alias_for: "user-select",
3729 }, 3735 },
3730 ], 3736 ],
3731 } 3737 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698