1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 18:17:34 +00:00

LibWeb: Propagate children_are_inline in wrap_in_anonymous

This fixes a crash in box_baseline, due to cells created for
display: table expecting a box child and getting the inline node wrapper
instead.

Fixes #18972.
This commit is contained in:
Andi Gallo 2023-05-22 02:59:10 +00:00 committed by Andreas Kling
parent d1328639b4
commit 668578ddc0
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,21 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x616 [BFC] children: not-inline
BlockContainer <(anonymous)> at (0,0) content-size 800x0 children: inline
TextNode <#text>
BlockContainer <body> at (8,8) content-size 784x600 children: not-inline
BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline
TextNode <#text>
TableWrapper <(anonymous)> at (8,8) content-size 784x600 [BFC] children: not-inline
TableBox <div.aligncenter.block-image> at (8,8) content-size 1200x600 [TFC] children: inline
TableRowBox <(anonymous)> at (8,8) content-size 1200x600 children: inline
TableCellBox <(anonymous)> at (8,8) content-size 1200x600 [BFC] children: inline
line 0 width: 1200, height: 600, bottom: 600, baseline: 600
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 1200x600]
TextNode <#text>
InlineNode <a>
TextNode <#text>
ImageBox <img> at (8,8) content-size 1200x600 children: not-inline
TextNode <#text>
TextNode <#text>
BlockContainer <(anonymous)> at (8,608) content-size 784x0 children: inline
TextNode <#text>