Add gecko glue for grid-{row,column}-{start,end}

This commit is contained in:
Ravi Shankar 2016-12-16 12:08:13 +05:30
parent 7976640251
commit 6d9aed9ac3
5 changed files with 45 additions and 5 deletions

View file

@ -2,6 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
<%! from data import to_rust_ident %>
<%namespace name="helpers" file="/helpers.mako.rs" />
<% from data import ALL_SIZES, PHYSICAL_SIDES, LOGICAL_SIDES %>
@ -180,3 +181,14 @@ ${helpers.single_keyword("box-sizing",
// https://drafts.csswg.org/css-images-3/
${helpers.single_keyword("object-fit", "fill contain cover none scale-down",
products="gecko", animatable=False)}
// https://drafts.csswg.org/css-grid/#propdef-grid-row-start
<% grid_longhands = ["grid-row-start", "grid-row-end", "grid-column-start", "grid-column-end"] %>
% for longhand in grid_longhands:
${helpers.predefined_type("%s" % longhand,
"GridLine",
"Default::default()",
animatable=False,
products="gecko")}
% endfor