diff --git a/components/style/properties/data.py b/components/style/properties/data.py index 3ca9d347157..df1c8d2890a 100644 --- a/components/style/properties/data.py +++ b/components/style/properties/data.py @@ -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"] diff --git a/components/style/properties/helpers.mako.rs b/components/style/properties/helpers.mako.rs index 017996f87b5..ff6670c3274 100644 --- a/components/style/properties/helpers.mako.rs +++ b/components/style/properties/helpers.mako.rs @@ -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;