style: Rename offset-* logical properties to inset-*.

Bug: 1464782
Reviewed-by: xidorn
MozReview-Commit-ID: BW44sru99RF
This commit is contained in:
Emilio Cobos Álvarez 2018-06-26 20:37:00 +02:00
parent ce0496e116
commit 65953fb158
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 5 additions and 4 deletions

View file

@ -856,7 +856,7 @@
elif len(maybe_size) == 1:
size = maybe_size[0]
def phys_ident(side, phy_side):
return to_rust_ident(name.replace(side, phy_side).replace("offset-", ""))
return to_rust_ident(name.replace(side, phy_side).replace("inset-", ""))
%>
% if side is not None:
use logical_geometry::PhysicalSide;

View file

@ -21,14 +21,15 @@
servo_restyle_damage="reflow_out_of_flow"
)}
% endfor
// offset-* logical properties, map to "top" / "left" / "bottom" / "right"
// inset-* logical properties, map to "top" / "left" / "bottom" / "right"
% for side in LOGICAL_SIDES:
${helpers.predefined_type(
"offset-%s" % side,
"inset-%s" % side,
"LengthOrPercentageOrAuto",
"computed::LengthOrPercentageOrAuto::Auto",
spec="https://drafts.csswg.org/css-logical-props/#propdef-offset-%s" % side,
spec="https://drafts.csswg.org/css-logical-props/#propdef-inset-%s" % side,
flags="GETCS_NEEDS_LAYOUT_FLUSH",
alias="offset-%s" % side,
animation_value_type="ComputedValue",
logical=True,
)}