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
This commit is contained in:
Emilio Cobos Álvarez 2023-03-06 11:14:40 +00:00 committed by Martin Robinson
parent 34eb94c71e
commit 860a6c2fe6

View file

@ -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",