aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flow
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2024-03-13 22:03:06 +0100
committerGitHub <noreply@github.com>2024-03-13 21:03:06 +0000
commitf3a73dbed39c38c6581fc356d3d4f2d38c906e93 (patch)
tree4bfca793e52cd7b34682a268a21421ef4e878000 /components/layout_2020/flow
parent525fc58ed9816d1cf43971c48f65266de9bd424e (diff)
downloadservo-f3a73dbed39c38c6581fc356d3d4f2d38c906e93.tar.gz
servo-f3a73dbed39c38c6581fc356d3d4f2d38c906e93.zip
End ongoing IFC when inserting anonymous block-level table (#31606)
So that the table appears after preceding inline-level contents. Fixes #31603.
Diffstat (limited to 'components/layout_2020/flow')
-rw-r--r--components/layout_2020/flow/construct.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/layout_2020/flow/construct.rs b/components/layout_2020/flow/construct.rs
index 78ac76d2c6a..0c8982cb005 100644
--- a/components/layout_2020/flow/construct.rs
+++ b/components/layout_2020/flow/construct.rs
@@ -317,6 +317,7 @@ where
self.current_inline_level_boxes()
.push(ArcRefCell::new(InlineLevelBox::Atomic(ifc)));
} else {
+ self.end_ongoing_inline_formatting_context();
let anonymous_info = self.info.new_anonymous(ifc.style().clone());
let table_block = ArcRefCell::new(BlockLevelBox::Independent(ifc));
self.block_level_boxes.push(BlockLevelJob {