mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
parent
cb764be7cd
commit
4ab0e85ed5
2 changed files with 2 additions and 2 deletions
|
@ -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"]
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue