mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Add logical padding, margin longhands and border shorthands
This commit is contained in:
parent
e34eb13d65
commit
f974719d9f
4 changed files with 41 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue