Add logical padding, margin longhands and border shorthands

This commit is contained in:
Manish Goregaokar 2016-11-08 14:14:02 -08:00
parent e34eb13d65
commit f974719d9f
4 changed files with 41 additions and 16 deletions

View file

@ -3,11 +3,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
<%namespace name="helpers" file="/helpers.mako.rs" />
<% from data import ALL_SIDES %>
<% data.new_style_struct("Margin", inherited=False) %>
% for side in ["top", "right", "bottom", "left"]:
${helpers.predefined_type("margin-" + side, "LengthOrPercentageOrAuto",
% for side in ALL_SIDES:
${helpers.predefined_type("margin-%s" % side[0], "LengthOrPercentageOrAuto",
"computed::LengthOrPercentageOrAuto::Length(Au(0))",
animatable=True)}
animatable=True, logical = side[1])}
% endfor