+ Middle part, should be 100% width, blank space should follow
+ thanks to justify-items: between.
+
+
+ Bottom part. Should be 100% width, blank space before.
+
+ diff --git a/tests/layout/test_flex.py b/tests/layout/test_flex.py index 88a352752..159edcad8 100644 --- a/tests/layout/test_flex.py +++ b/tests/layout/test_flex.py @@ -677,3 +677,52 @@ def test_flex_column_height2(): assert section.height == (a1.height + a2.height + a1.margin_top + a1.margin_bottom + a2.margin_top + a2.margin_bottom) + + +def test_flex_column_width(): + # Regression test for https://github.com/Kozea/WeasyPrint/issues/1171 + page, = render_pages(""" + +