style: Consistently use top-right-bottom-left order for physical sides.

Bug: 1454591
Reviewed-by: heycam
MozReview-Commit-ID: 6pLRSO8YNDI
This commit is contained in:
Xidorn Quan 2018-05-04 15:15:56 +10:00 committed by Emilio Cobos Álvarez
parent cb764be7cd
commit 4ab0e85ed5
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
import re
PHYSICAL_SIDES = ["top", "left", "bottom", "right"]
PHYSICAL_SIDES = ["top", "right", "bottom", "left"]
LOGICAL_SIDES = ["block-start", "block-end", "inline-start", "inline-end"]
PHYSICAL_SIZES = ["width", "height"]
LOGICAL_SIZES = ["block-size", "inline-size"]

View file

@ -759,7 +759,7 @@
<%def name="four_sides_shorthand(name, sub_property_pattern, parser_function,
needs_context=True, allow_quirks=False, **kwargs)">
<% sub_properties=' '.join(sub_property_pattern % side for side in ['top', 'right', 'bottom', 'left']) %>
<% sub_properties=' '.join(sub_property_pattern % side for side in PHYSICAL_SIDES) %>
<%call expr="self.shorthand(name, sub_properties=sub_properties, **kwargs)">
#[allow(unused_imports)]
use parser::Parse;