mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Rename offset-* logical properties to inset-*.
Bug: 1464782 Reviewed-by: xidorn MozReview-Commit-ID: BW44sru99RF
This commit is contained in:
parent
ce0496e116
commit
65953fb158
2 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue