From 860a6c2fe680bf65fc654a2eeda24cb05d7799f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 6 Mar 2023 11:14:40 +0000 Subject: [PATCH] style: Move legacy -moz-box collapse to its own CSS property Make display: -moz-box's visibility: collapse handling switchable by its own CSS property. Longer term maybe we should switch the front-end away from visibility: collapse altogether (there are some alternatives), but for now this will allow to move the front-end to switch to modern `display: flex` while keeping `visibility: collapse` work as in -moz-box. Differential Revision: https://phabricator.services.mozilla.com/D171472 --- .../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 1b95bfe9ed8..3eec62adfeb 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-collapse", + "flex legacy", + engines="gecko", + gecko_enum_prefix="StyleMozBoxCollapse", + animation_value_type="none", + enabled_in="chrome", + spec="None (internal)", +)} + ${helpers.single_keyword( "-moz-box-layout", "flex legacy",