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

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: Replace ImplicitProperty by IsImplicitProperty 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 3617 matching lines...) Expand 10 before | Expand all | Expand 10 after
3628 api_class: true, 3628 api_class: true,
3629 api_methods: ["parseShorthand"], 3629 api_methods: ["parseShorthand"],
3630 }, 3630 },
3631 { 3631 {
3632 name: "flex-flow", 3632 name: "flex-flow",
3633 longhands: "flex-direction;flex-wrap", 3633 longhands: "flex-direction;flex-wrap",
3634 }, 3634 },
3635 { 3635 {
3636 name: "font", 3636 name: "font",
3637 longhands: "font-style;font-variant-ligatures;font-variant-caps;font-varia nt-numeric;font-weight;font-stretch;font-size;line-height;font-family", 3637 longhands: "font-style;font-variant-ligatures;font-variant-caps;font-varia nt-numeric;font-weight;font-stretch;font-size;line-height;font-family",
3638 api_class: true,
3639 api_methods: ["parseShorthand"],
3638 }, 3640 },
3639 { 3641 {
3640 name: "font-variant", 3642 name: "font-variant",
3641 longhands: "font-variant-ligatures;font-variant-caps;font-variant-numeric" , 3643 longhands: "font-variant-ligatures;font-variant-caps;font-variant-numeric" ,
3644 api_class: true,
3645 api_methods: ["parseShorthand"],
3642 is_descriptor: true, 3646 is_descriptor: true,
3643 }, 3647 },
3644 { 3648 {
3645 name: "grid", 3649 name: "grid",
3646 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", 3650 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",
3647 runtime_flag: "CSSGridLayout", 3651 runtime_flag: "CSSGridLayout",
3648 }, 3652 },
3649 { 3653 {
3650 name: "place-content", 3654 name: "place-content",
3651 longhands: "align-content;justify-content", 3655 longhands: "align-content;justify-content",
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
3702 name: "offset", 3706 name: "offset",
3703 longhands: "offset-position;offset-path;offset-distance;offset-rotate;offs et-anchor", 3707 longhands: "offset-position;offset-path;offset-distance;offset-rotate;offs et-anchor",
3704 }, 3708 },
3705 { 3709 {
3706 name: "outline", 3710 name: "outline",
3707 longhands: "outline-color;outline-style;outline-width", 3711 longhands: "outline-color;outline-style;outline-width",
3708 }, 3712 },
3709 { 3713 {
3710 name: "overflow", 3714 name: "overflow",
3711 longhands: "overflow-x;overflow-y", 3715 longhands: "overflow-x;overflow-y",
3716 api_class: true,
3717 api_methods: ["parseShorthand"],
3712 }, 3718 },
3713 { 3719 {
3714 name: "padding", 3720 name: "padding",
3715 longhands: "padding-top;padding-right;padding-bottom;padding-left", 3721 longhands: "padding-top;padding-right;padding-bottom;padding-left",
3716 }, 3722 },
3717 { 3723 {
3718 name: "page-break-after", 3724 name: "page-break-after",
3719 longhands: "break-after", 3725 longhands: "break-after",
3720 }, 3726 },
3721 { 3727 {
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
4099 { 4105 {
4100 name: "-webkit-transition-timing-function", 4106 name: "-webkit-transition-timing-function",
4101 alias_for: "transition-timing-function", 4107 alias_for: "transition-timing-function",
4102 }, 4108 },
4103 { 4109 {
4104 name: "-webkit-user-select", 4110 name: "-webkit-user-select",
4105 alias_for: "user-select", 4111 alias_for: "user-select",
4106 }, 4112 },
4107 ], 4113 ],
4108 } 4114 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/BUILD.gn ('k') | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698