style: Introduce a concept of logical group.

Bug: 1473180
Reviewed-by: emilio
MozReview-Commit-ID: GXlf8JNML4N
This commit is contained in:
Xidorn Quan 2018-07-19 10:11:04 +10:00 committed by Emilio Cobos Álvarez
parent 08dcd7fca0
commit d245f8b579
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
6 changed files with 59 additions and 2 deletions

View file

@ -18,7 +18,8 @@
flags="GETCS_NEEDS_LAYOUT_FLUSH",
animation_value_type="ComputedValue",
allow_quirks=True,
servo_restyle_damage="reflow_out_of_flow"
servo_restyle_damage="reflow_out_of_flow",
logical_group="inset",
)}
% endfor
// inset-* logical properties, map to "top" / "left" / "bottom" / "right"
@ -32,6 +33,7 @@
alias="offset-%s:layout.css.offset-logical-properties.enabled" % side,
animation_value_type="ComputedValue",
logical=True,
logical_group="inset",
)}
% endfor
@ -221,6 +223,7 @@ ${helpers.predefined_type(
"computed::MozLength::auto()",
parse_function,
logical=logical,
logical_group="size",
allow_quirks=not logical,
spec=spec % size,
animation_value_type="MozLength",
@ -234,6 +237,7 @@ ${helpers.predefined_type(
"computed::MozLength::auto()",
parse_function,
logical=logical,
logical_group="min-size",
allow_quirks=not logical,
spec=spec % size,
animation_value_type="MozLength",
@ -245,6 +249,7 @@ ${helpers.predefined_type(
"computed::MaxLength::none()",
parse_function,
logical=logical,
logical_group="max-size",
allow_quirks=not logical,
spec=spec % size,
animation_value_type="MaxLength",