Files
ladybird/Tests/LibWeb/Layout/expected/table/borders.txt
Edward Banner 03569fc509 LibWeb: Fix table overflow issues
- Include vertical border spacing in row group offset calculation so
  that they are axis-aligned with child row/cell elements. This makes it
  so there isn't horizontal and vertical overflow caused by child
  row/cell elements.
- Include horizontal border spacing in tr width calculations. This makes
  it so tr elements don't have overflow anymore when there are multiple
  columns.
- Apply vertical caption offset to row group top offset.
- Don't double-count top padding when calculating vertical offset for
  tr and row groups.
2024-10-14 17:30:17 +01:00

315 lines
20 KiB
Plaintext

Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x260 children: not-inline
TableWrapper <(anonymous)> at (8,8) content-size 174.296875x73 [BFC] children: not-inline
Box <table.table-border-black> at (9,9) content-size 172.296875x71 table-box [TFC] children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
Box <tbody> at (11,11) content-size 168.296875x67 table-row-group children: not-inline
Box <tr> at (11,11) content-size 168.296875x21 table-row children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <td> at (13,13) content-size 82.015625x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 9, rect: [13,13 82.015625x17] baseline: 13.296875
"Firstname"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <td> at (101.015625,13) content-size 76.28125x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 8, rect: [101.015625,13 76.28125x17] baseline: 13.296875
"Lastname"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
Box <tr> at (11,34) content-size 168.296875x21 table-row children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <td> at (13,36) content-size 82.015625x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 5, rect: [13,36 44.65625x17] baseline: 13.296875
"Peter"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <td> at (101.015625,36) content-size 76.28125x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 7, rect: [101.015625,36 53.671875x17] baseline: 13.296875
"Griffin"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
Box <tr> at (11,57) content-size 168.296875x21 table-row children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <td> at (13,59) content-size 82.015625x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 4, rect: [13,59 35.125x17] baseline: 13.296875
"Lois"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <td> at (101.015625,59) content-size 76.28125x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 7, rect: [101.015625,59 53.671875x17] baseline: 13.296875
"Griffin"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,81) content-size 784x0 children: inline
TextNode <#text>
TextNode <#text>
TableWrapper <(anonymous)> at (8,81) content-size 164.296875x61 [BFC] children: not-inline
Box <table.table-border-black> at (8,81) content-size 164.296875x61 table-box [TFC] children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
Box <tbody> at (8,81) content-size 164.296875x61 table-row-group children: not-inline
Box <tr> at (8,81) content-size 164.296875x20 table-row children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <td> at (9,82) content-size 82.015625x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 9, rect: [9,82 82.015625x17] baseline: 13.296875
"Firstname"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <td> at (95.015625,82) content-size 76.28125x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 8, rect: [95.015625,82 76.28125x17] baseline: 13.296875
"Lastname"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
Box <tr> at (8,101) content-size 164.296875x21 table-row children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <td> at (9,103) content-size 82.015625x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 5, rect: [9,103 44.65625x17] baseline: 13.296875
"Peter"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <td> at (95.015625,103) content-size 76.28125x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 7, rect: [95.015625,103 53.671875x17] baseline: 13.296875
"Griffin"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
Box <tr> at (8,122) content-size 164.296875x20 table-row children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <td> at (9,124) content-size 82.015625x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 4, rect: [9,124 35.125x17] baseline: 13.296875
"Lois"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <td> at (95.015625,124) content-size 76.28125x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 7, rect: [95.015625,124 53.671875x17] baseline: 13.296875
"Griffin"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,142) content-size 784x0 children: inline
TextNode <#text>
TextNode <#text>
TableWrapper <(anonymous)> at (8,142) content-size 160.296875x55 [BFC] children: not-inline
Box <div.table.border-black> at (8,142) content-size 160.296875x55 table-box [TFC] children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
Box <div.table-row.border-black> at (8,142) content-size 160.296875x18 table-row children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <div.table-cell.border-black> at (8,142) content-size 82.015625x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 9, rect: [8,142 82.015625x17] baseline: 13.296875
"Firstname"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <div.table-cell.border-black> at (92.015625,142) content-size 76.28125x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 8, rect: [92.015625,142 76.28125x17] baseline: 13.296875
"Lastname"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
Box <div.table-row.border-black> at (8,160) content-size 160.296875x19 table-row children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <div.table-cell.border-black> at (8,161) content-size 82.015625x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 5, rect: [8,161 44.65625x17] baseline: 13.296875
"Peter"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <div.table-cell.border-black> at (92.015625,161) content-size 76.28125x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 7, rect: [92.015625,161 53.671875x17] baseline: 13.296875
"Griffin"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
Box <div.table-row.border-black> at (8,179) content-size 160.296875x18 table-row children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <div.table-cell.border-black> at (8,180) content-size 82.015625x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 4, rect: [8,180 35.125x17] baseline: 13.296875
"Lois"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <div.table-cell.border-black> at (92.015625,180) content-size 76.28125x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 7, rect: [92.015625,180 53.671875x17] baseline: 13.296875
"Griffin"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,197) content-size 784x0 children: inline
TextNode <#text>
TextNode <#text>
TableWrapper <(anonymous)> at (8,197) content-size 168.296875x71 [BFC] children: not-inline
Box <div.table.thick-border-black> at (8,197) content-size 168.296875x71 table-box [TFC] children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
Box <div.table-row.thick-border-black> at (8,197) content-size 168.296875x22 table-row children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <div.table-cell.thick-border-black> at (8,197) content-size 82.015625x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 9, rect: [8,197 82.015625x17] baseline: 13.296875
"Firstname"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <div.table-cell.thick-border-black> at (100.015625,197) content-size 76.28125x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 8, rect: [100.015625,197 76.28125x17] baseline: 13.296875
"Lastname"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
Box <div.table-row.thick-border-black> at (8,219) content-size 168.296875x27 table-row children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <div.table-cell.thick-border-black> at (8,224) content-size 82.015625x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 5, rect: [8,224 44.65625x17] baseline: 13.296875
"Peter"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <div.table-cell.thick-border-black> at (100.015625,224) content-size 76.28125x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 7, rect: [100.015625,224 53.671875x17] baseline: 13.296875
"Griffin"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
Box <div.table-row.thick-border-black> at (8,246) content-size 168.296875x22 table-row children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <div.table-cell.thick-border-black> at (8,251) content-size 82.015625x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 4, rect: [8,251 35.125x17] baseline: 13.296875
"Lois"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <div.table-cell.thick-border-black> at (100.015625,251) content-size 76.28125x17 table-cell [BFC] children: inline
frag 0 from TextNode start: 0, length: 7, rect: [100.015625,251 53.671875x17] baseline: 13.296875
"Griffin"
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,268) content-size 784x0 children: inline
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x260]
PaintableWithLines (TableWrapper(anonymous)) [8,8 174.296875x73]
PaintableBox (Box<TABLE>.table-border-black) [8,8 174.296875x73]
PaintableBox (Box<TBODY>) [11,11 168.296875x67]
PaintableBox (Box<TR>) [11,11 168.296875x21]
PaintableWithLines (BlockContainer<TD>) [11,11 86.015625x21]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<TD>) [99.015625,11 80.28125x21]
TextPaintable (TextNode<#text>)
PaintableBox (Box<TR>) [11,34 168.296875x21]
PaintableWithLines (BlockContainer<TD>) [11,34 86.015625x21]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<TD>) [99.015625,34 80.28125x21]
TextPaintable (TextNode<#text>)
PaintableBox (Box<TR>) [11,57 168.296875x21]
PaintableWithLines (BlockContainer<TD>) [11,57 86.015625x21]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<TD>) [99.015625,57 80.28125x21]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,81 784x0]
PaintableWithLines (TableWrapper(anonymous)) [8,81 164.296875x61]
PaintableBox (Box<TABLE>.table-border-black) [8,81 164.296875x61]
PaintableBox (Box<TBODY>) [8,81 164.296875x61]
PaintableBox (Box<TR>) [8,81 164.296875x20]
PaintableWithLines (BlockContainer<TD>) [8,81 85.015625x20]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<TD>) [93.015625,81 79.28125x20]
TextPaintable (TextNode<#text>)
PaintableBox (Box<TR>) [8,101 164.296875x21]
PaintableWithLines (BlockContainer<TD>) [8,101 85.015625x21]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<TD>) [93.015625,101 79.28125x21]
TextPaintable (TextNode<#text>)
PaintableBox (Box<TR>) [8,122 164.296875x20]
PaintableWithLines (BlockContainer<TD>) [8,122 85.015625x20]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<TD>) [93.015625,122 79.28125x20]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,142 784x0]
PaintableWithLines (TableWrapper(anonymous)) [8,142 160.296875x55]
PaintableBox (Box<DIV>.table.border-black) [8,142 160.296875x55]
PaintableBox (Box<DIV>.table-row.border-black) [8,142 160.296875x18]
PaintableWithLines (BlockContainer<DIV>.table-cell.border-black) [8,142 83.015625x18]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.table-cell.border-black) [91.015625,142 77.28125x18]
TextPaintable (TextNode<#text>)
PaintableBox (Box<DIV>.table-row.border-black) [8,160 160.296875x19]
PaintableWithLines (BlockContainer<DIV>.table-cell.border-black) [8,160 83.015625x19]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.table-cell.border-black) [91.015625,160 77.28125x19]
TextPaintable (TextNode<#text>)
PaintableBox (Box<DIV>.table-row.border-black) [8,179 160.296875x18]
PaintableWithLines (BlockContainer<DIV>.table-cell.border-black) [8,179 83.015625x18]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.table-cell.border-black) [91.015625,179 77.28125x18]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,197 784x0]
PaintableWithLines (TableWrapper(anonymous)) [8,197 168.296875x71]
PaintableBox (Box<DIV>.table.thick-border-black) [8,197 168.296875x71]
PaintableBox (Box<DIV>.table-row.thick-border-black) [8,197 168.296875x22]
PaintableWithLines (BlockContainer<DIV>.table-cell.thick-border-black) [8,197 87.015625x22]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.table-cell.thick-border-black) [95.015625,197 81.28125x22]
TextPaintable (TextNode<#text>)
PaintableBox (Box<DIV>.table-row.thick-border-black) [8,219 168.296875x27]
PaintableWithLines (BlockContainer<DIV>.table-cell.thick-border-black) [8,219 87.015625x27]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.table-cell.thick-border-black) [95.015625,219 81.28125x27]
TextPaintable (TextNode<#text>)
PaintableBox (Box<DIV>.table-row.thick-border-black) [8,246 168.296875x22]
PaintableWithLines (BlockContainer<DIV>.table-cell.thick-border-black) [8,246 87.015625x22]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.table-cell.thick-border-black) [95.015625,246 81.28125x22]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,268 784x0]