End ongoing IFC when inserting anonymous block-level table (#31606)

So that the table appears after preceding inline-level contents.
Fixes #31603.
This commit is contained in:
Oriol Brufau 2024-03-13 22:03:06 +01:00 committed by GitHub
parent 525fc58ed9
commit f3a73dbed3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 45 additions and 0 deletions

View file

@ -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 {