mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add spec links for padding properties
This commit is contained in:
parent
e7464b5fd5
commit
6cf15de868
2 changed files with 9 additions and 2 deletions
|
@ -7,10 +7,16 @@
|
|||
<% data.new_style_struct("Padding", inherited=False) %>
|
||||
|
||||
% for side in ALL_SIDES:
|
||||
<%
|
||||
spec = "https://drafts.csswg.org/css-box/#propdef-padding-%s" % side[0]
|
||||
if side[1]:
|
||||
spec = "https://drafts.csswg.org/css-logical-props/#propdef-padding-%s" % side[1]
|
||||
%>
|
||||
${helpers.predefined_type("padding-%s" % side[0], "LengthOrPercentage",
|
||||
"computed::LengthOrPercentage::Length(Au(0))",
|
||||
"parse_non_negative",
|
||||
needs_context=False,
|
||||
animatable=True,
|
||||
logical = side[1])}
|
||||
logical = side[1],
|
||||
spec = spec)}
|
||||
% endfor
|
||||
|
|
|
@ -4,4 +4,5 @@
|
|||
|
||||
<%namespace name="helpers" file="/helpers.mako.rs" />
|
||||
|
||||
${helpers.four_sides_shorthand("padding", "padding-%s", "specified::LengthOrPercentage::parse")}
|
||||
${helpers.four_sides_shorthand("padding", "padding-%s", "specified::LengthOrPercentage::parse",
|
||||
spec="https://drafts.csswg.org/css-box-3/#propdef-padding")}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue