mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
layout 2020: Implement justify-content in flexbox
Align the items along the main-axis per justify-content.
This commit is contained in:
parent
f29834608a
commit
debcd30b21
2 changed files with 61 additions and 19 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue