layout 2020: Implement justify-content in flexbox

Align the items along the main-axis per justify-content.
This commit is contained in:
Pu Xingyu 2023-05-05 23:14:38 +08:00
parent f29834608a
commit debcd30b21
2 changed files with 61 additions and 19 deletions

View file

@ -92,12 +92,13 @@ ${helpers.single_keyword(
gecko_enum_prefix = "StyleFlexWrap",
)}
% if engine == "servo-2013":
% if engine in ["servo-2013", "servo-2020"]:
// FIXME: Update Servo to support the same Syntax as Gecko.
${helpers.single_keyword(
"justify-content",
"flex-start stretch flex-end center space-between space-around",
engines="servo-2013",
engines="servo-2013 servo-2020",
servo_2020_pref="layout.flexbox.enabled",
extra_prefixes="webkit",
spec="https://drafts.csswg.org/css-align/#propdef-justify-content",
animation_value_type="discrete",