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

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: Change AddProperty's "implicit" to an enum. 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 3590 matching lines...) Expand 10 before | Expand all | Expand 10 after
3601 api_class: true, 3601 api_class: true,
3602 api_methods: ["parseShorthand"], 3602 api_methods: ["parseShorthand"],
3603 }, 3603 },
3604 { 3604 {
3605 name: "flex-flow", 3605 name: "flex-flow",
3606 longhands: "flex-direction;flex-wrap", 3606 longhands: "flex-direction;flex-wrap",
3607 }, 3607 },
3608 { 3608 {
3609 name: "font", 3609 name: "font",
3610 longhands: "font-style;font-variant-ligatures;font-variant-caps;font-varia nt-numeric;font-weight;font-stretch;font-size;line-height;font-family", 3610 longhands: "font-style;font-variant-ligatures;font-variant-caps;font-varia nt-numeric;font-weight;font-stretch;font-size;line-height;font-family",
3611 api_class: true,
3612 api_methods: ["parseShorthand"],
3611 }, 3613 },
3612 { 3614 {
3613 name: "font-variant", 3615 name: "font-variant",
3614 longhands: "font-variant-ligatures;font-variant-caps;font-variant-numeric" , 3616 longhands: "font-variant-ligatures;font-variant-caps;font-variant-numeric" ,
3617 api_class: true,
3618 api_methods: ["parseShorthand"],
3615 is_descriptor: true, 3619 is_descriptor: true,
3616 }, 3620 },
3617 { 3621 {
3618 name: "grid", 3622 name: "grid",
3619 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", 3623 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",
3620 runtime_flag: "CSSGridLayout", 3624 runtime_flag: "CSSGridLayout",
3621 }, 3625 },
3622 { 3626 {
3623 name: "place-content", 3627 name: "place-content",
3624 longhands: "align-content;justify-content", 3628 longhands: "align-content;justify-content",
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
3675 name: "offset", 3679 name: "offset",
3676 longhands: "offset-position;offset-path;offset-distance;offset-rotate;offs et-anchor", 3680 longhands: "offset-position;offset-path;offset-distance;offset-rotate;offs et-anchor",
3677 }, 3681 },
3678 { 3682 {
3679 name: "outline", 3683 name: "outline",
3680 longhands: "outline-color;outline-style;outline-width", 3684 longhands: "outline-color;outline-style;outline-width",
3681 }, 3685 },
3682 { 3686 {
3683 name: "overflow", 3687 name: "overflow",
3684 longhands: "overflow-x;overflow-y", 3688 longhands: "overflow-x;overflow-y",
3689 api_class: true,
3690 api_methods: ["parseShorthand"],
3685 }, 3691 },
3686 { 3692 {
3687 name: "padding", 3693 name: "padding",
3688 longhands: "padding-top;padding-right;padding-bottom;padding-left", 3694 longhands: "padding-top;padding-right;padding-bottom;padding-left",
3689 }, 3695 },
3690 { 3696 {
3691 name: "page-break-after", 3697 name: "page-break-after",
3692 longhands: "break-after", 3698 longhands: "break-after",
3693 }, 3699 },
3694 { 3700 {
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
4072 { 4078 {
4073 name: "-webkit-transition-timing-function", 4079 name: "-webkit-transition-timing-function",
4074 alias_for: "transition-timing-function", 4080 alias_for: "transition-timing-function",
4075 }, 4081 },
4076 { 4082 {
4077 name: "-webkit-user-select", 4083 name: "-webkit-user-select",
4078 alias_for: "user-select", 4084 alias_for: "user-select",
4079 }, 4085 },
4080 ], 4086 ],
4081 } 4087 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698