mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
style: Introduce a concept of logical group.
Bug: 1473180 Reviewed-by: emilio MozReview-Commit-ID: GXlf8JNML4N
This commit is contained in:
parent
08dcd7fca0
commit
d245f8b579
6 changed files with 59 additions and 2 deletions
|
@ -27,6 +27,7 @@
|
|||
spec=maybe_logical_spec(side, "color"),
|
||||
animation_value_type="AnimatedColor",
|
||||
logical=is_logical,
|
||||
logical_group="border-color",
|
||||
allow_quirks=not is_logical,
|
||||
flags="APPLIES_TO_FIRST_LETTER",
|
||||
ignored_when_colors_disabled=True,
|
||||
|
@ -40,6 +41,7 @@
|
|||
flags="APPLIES_TO_FIRST_LETTER",
|
||||
animation_value_type="discrete" if not is_logical else "none",
|
||||
logical=is_logical,
|
||||
logical_group="border-style",
|
||||
needs_context=False,
|
||||
)}
|
||||
|
||||
|
@ -52,6 +54,7 @@
|
|||
spec=maybe_logical_spec(side, "width"),
|
||||
animation_value_type="NonNegativeLength",
|
||||
logical=is_logical,
|
||||
logical_group="border-width",
|
||||
flags="APPLIES_TO_FIRST_LETTER GETCS_NEEDS_LAYOUT_FLUSH",
|
||||
allow_quirks=not is_logical,
|
||||
servo_restyle_damage="reflow rebuild_and_reflow_inline"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
allow_quirks=not side[1],
|
||||
animation_value_type="ComputedValue",
|
||||
logical=side[1],
|
||||
logical_group="margin",
|
||||
spec=spec,
|
||||
flags="APPLIES_TO_FIRST_LETTER GETCS_NEEDS_LAYOUT_FLUSH",
|
||||
allowed_in_page_rule=True,
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
alias=maybe_moz_logical_alias(product, side, "-moz-padding-%s"),
|
||||
animation_value_type="NonNegativeLengthOrPercentage",
|
||||
logical=side[1],
|
||||
logical_group="padding",
|
||||
spec=spec,
|
||||
flags="APPLIES_TO_FIRST_LETTER APPLIES_TO_PLACEHOLDER GETCS_NEEDS_LAYOUT_FLUSH",
|
||||
allow_quirks=not side[1],
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue