style: Add support for parsing the contain-intrinsic-size property from the CSS-sizing specification

Differential Revision: https://phabricator.services.mozilla.com/D151001
This commit is contained in:
Ziran Sun 2022-07-06 11:47:51 +00:00 committed by Martin Robinson
parent b0693b2f4d
commit 6fec9d6f8c
7 changed files with 101 additions and 3 deletions

View file

@ -463,3 +463,18 @@ ${helpers.predefined_type(
gecko_pref="layout.css.aspect-ratio.enabled",
servo_restyle_damage="reflow",
)}
% for (size, logical) in ALL_SIZES:
// FIXME: Bug 1778296, "contain-intrinsic-*" properties should be animatable.
${helpers.predefined_type(
"contain-intrinsic-" + size,
"ContainIntrinsicSize",
"computed::ContainIntrinsicSize::None",
engines="gecko",
logical_group="contain-intrinsic-size",
logical=logical,
gecko_pref="layout.css.contain-intrinsic-size.enabled",
spec="https://drafts.csswg.org/css-sizing-4/#intrinsic-size-override",
animation_value_type="none",
)}
% endfor