From b65975355598ae166ab14f1fd6b8e42510f28d65 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 24 Oct 2016 17:32:52 -0700 Subject: [PATCH] layout: Treat flex flows as individual formatting contexts per spec. --- components/layout/block.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/layout/block.rs b/components/layout/block.rs index 1658a703182..c0e8b51389a 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -1457,7 +1457,8 @@ impl BlockFlow { display::T::table_caption | display::T::table_row_group | display::T::table | - display::T::inline_block => { + display::T::inline_block | + display::T::flex => { FormattingContextType::Other } _ if style.get_box().overflow_x != overflow_x::T::visible ||