mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
parent
525fc58ed9
commit
f3a73dbed3
4 changed files with 45 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue