diff options
Diffstat (limited to 'components/layout_2020/flow/mod.rs')
-rw-r--r-- | components/layout_2020/flow/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout_2020/flow/mod.rs b/components/layout_2020/flow/mod.rs index 9af17e0a4b1..f042f814dd3 100644 --- a/components/layout_2020/flow/mod.rs +++ b/components/layout_2020/flow/mod.rs @@ -30,7 +30,7 @@ use style::values::computed::{Length, LengthOrAuto}; use style::Zero; mod construct; -mod float; +pub mod float; pub mod inline; mod root; @@ -80,7 +80,7 @@ impl BlockFormattingContext { ) -> IndependentLayout { let mut float_context; let float_context = if self.contains_floats { - float_context = FloatContext::new(); + float_context = FloatContext::new(containing_block.inline_size); Some(&mut float_context) } else { None |