diff options
-rw-r--r-- | src/components/main/layout/box_builder.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/main/layout/box_builder.rs b/src/components/main/layout/box_builder.rs index fd5dfd5bbc1..643a7b80b5d 100644 --- a/src/components/main/layout/box_builder.rs +++ b/src/components/main/layout/box_builder.rs @@ -401,7 +401,8 @@ impl LayoutTreeBuilder { let new_generator = match (display, parent_generator.flow, sibling_flow) { // Floats - (CSSDisplayBlock, BlockFlow(_), _) if !is_float.is_none() => { + (CSSDisplayBlock, BlockFlow(_), _) | + (CSSDisplayBlock, FloatFlow(_), _) if !is_float.is_none() => { self.create_child_generator(node, parent_generator, Flow_Float(is_float.get())) } // If we're placing a float after an inline, append the float to the inline flow, |