mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
The `is_ignorable_whitespace()` check in table fixup traverses anonymous block wrappers to see if they contain only whitespace. It rejected out-of-flow and text descendants but silently skipped in-flow non-text elements like `<span>`, misclassifying wrappers with real content as ignorable and absorbing them into the table structure.
25 lines
1.6 KiB
Plaintext
25 lines
1.6 KiB
Plaintext
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
|
|
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
|
|
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: not-inline
|
|
TableWrapper <(anonymous)> at [8,8] [0+0+0 0 0+0+784] [0+0+0 0 0+0+0] [BFC] children: not-inline
|
|
Box <(anonymous)> at [8,8] table-box [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [TFC] children: not-inline
|
|
Box <(anonymous)> at [8,8] table-row [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] children: not-inline
|
|
BlockContainer <div> at [8,8] table-cell [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at [8,8] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
|
|
TextNode <#text> (not painted)
|
|
InlineNode <span> at [8,8] [0+3+0 0 0+3+0] [0+3+0 18 0+3+0]
|
|
TextNode <#text> (not painted)
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x16]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]
|
|
PaintableWithLines (TableWrapper(anonymous)) [8,8 0x0]
|
|
PaintableBox (Box(anonymous)) [8,8 0x0]
|
|
PaintableBox (Box(anonymous)) [8,8 0x0]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,8 0x0]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,8 784x0]
|
|
PaintableWithLines (InlineNode<SPAN>) [5,5 6x24]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [0,0 800x16] [children: 0] (z-index: auto)
|