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

@ -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"