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,12 +3,13 @@
* 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("Padding", inherited=False) %>
% for side in ["top", "right", "bottom", "left"]:
${helpers.predefined_type("padding-" + side, "LengthOrPercentage",
% for side in ALL_SIDES:
${helpers.predefined_type("padding-%s" % side[0], "LengthOrPercentage",
"computed::LengthOrPercentage::Length(Au(0))",
"parse_non_negative",
animatable=True)}
animatable=True,
logical = side[1])}
% endfor