From 648a6c14cfce2ea881dbaf603a23ab02fa958ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 10 Aug 2022 19:46:37 +0000 Subject: [PATCH] style: Add a chrome-only -moz-box-layout: legacy | flex, and use that to implement flexbox emulation Differential Revision: https://phabricator.services.mozilla.com/D154153 --- .../style/properties/longhands/inherited_box.mako.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/style/properties/longhands/inherited_box.mako.rs b/components/style/properties/longhands/inherited_box.mako.rs index 1c710dd2ff9..59f28f827af 100644 --- a/components/style/properties/longhands/inherited_box.mako.rs +++ b/components/style/properties/longhands/inherited_box.mako.rs @@ -45,6 +45,16 @@ ${helpers.single_keyword( servo_restyle_damage="rebuild_and_reflow", )} +${helpers.single_keyword( + "-moz-box-layout", + "legacy flex", + engines="gecko", + gecko_enum_prefix="StyleMozBoxLayout", + animation_value_type="none", + enabled_in="chrome", + spec="None (internal)", +)} + ${helpers.single_keyword( "text-orientation", "mixed upright sideways",