From 2aeed833e65db1d12b9fd8a09a97501f2b89de1a Mon Sep 17 00:00:00 2001 From: Pu Xingyu Date: Sun, 10 Jul 2016 16:34:12 +0800 Subject: [PATCH] Treat flex flow as block in float calculation --- components/layout/flow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/layout/flow.rs b/components/layout/flow.rs index 1c53740c402..35bd4c26881 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -588,7 +588,7 @@ impl FlowClass { match self { FlowClass::Block | FlowClass::ListItem | FlowClass::Table | FlowClass::TableRowGroup | FlowClass::TableRow | FlowClass::TableCaption | FlowClass::TableCell | - FlowClass::TableWrapper => true, + FlowClass::TableWrapper | FlowClass::Flex => true, _ => false, } }