mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Cleanup grid mako
This commit is contained in:
parent
b55cc7f9da
commit
7099743bbf
1 changed files with 16 additions and 23 deletions
|
@ -255,28 +255,21 @@ ${helpers.predefined_type("object-position",
|
||||||
spec="https://drafts.csswg.org/css-images-3/#the-object-position",
|
spec="https://drafts.csswg.org/css-images-3/#the-object-position",
|
||||||
animatable=True)}
|
animatable=True)}
|
||||||
|
|
||||||
<% grid_longhands = ["grid-row-start", "grid-row-end", "grid-column-start", "grid-column-end"] %>
|
% for kind in ["row", "column"]:
|
||||||
|
${helpers.predefined_type("grid-%s-gap" % kind,
|
||||||
|
"LengthOrPercentage",
|
||||||
|
"computed::LengthOrPercentage::Length(Au(0))",
|
||||||
|
spec="https://drafts.csswg.org/css-grid/#propdef-grid-%s-gap" % kind,
|
||||||
|
animatable=True,
|
||||||
|
products="gecko")}
|
||||||
|
|
||||||
% for longhand in grid_longhands:
|
% for range in ["start", "end"]:
|
||||||
${helpers.predefined_type("%s" % longhand,
|
${helpers.predefined_type("grid-%s-%s" % (kind, range),
|
||||||
"GridLine",
|
"GridLine",
|
||||||
"Default::default()",
|
"Default::default()",
|
||||||
animatable=False,
|
animatable=False,
|
||||||
spec="https://drafts.csswg.org/css-grid/#propdef-%s" % longhand,
|
spec="https://drafts.csswg.org/css-grid/#propdef-grid-%s-%s" % (kind, range),
|
||||||
products="gecko",
|
products="gecko",
|
||||||
boxed=True)}
|
boxed=True)}
|
||||||
|
% endfor
|
||||||
% endfor
|
% endfor
|
||||||
|
|
||||||
${helpers.predefined_type("grid-row-gap",
|
|
||||||
"LengthOrPercentage",
|
|
||||||
"computed::LengthOrPercentage::Length(Au(0))",
|
|
||||||
spec="https://drafts.csswg.org/css-grid/#propdef-grid-row-gap",
|
|
||||||
animatable=True,
|
|
||||||
products="gecko")}
|
|
||||||
|
|
||||||
${helpers.predefined_type("grid-column-gap",
|
|
||||||
"LengthOrPercentage",
|
|
||||||
"computed::LengthOrPercentage::Length(Au(0))",
|
|
||||||
spec="https://drafts.csswg.org/css-grid/#propdef-grid-column-gap",
|
|
||||||
animatable=True,
|
|
||||||
products="gecko")}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue