-
-
Notifications
You must be signed in to change notification settings - Fork 971
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Consider every row when calculating table width
- Loading branch information
Showing
4 changed files
with
88 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
Tests/LibWeb/Layout/expected/table/colspan-overflow-crash.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
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 784x61 children: not-inline | ||
TableWrapper <(anonymous)> at (8,8) content-size 27.90625x44 [BFC] children: not-inline | ||
Box <table> at (8,8) content-size 27.90625x44 table-box [TFC] children: not-inline | ||
BlockContainer <(anonymous)> (not painted) children: inline | ||
TextNode <#text> | ||
Box <tbody> at (10,10) content-size 23.90625x40 table-row-group children: not-inline | ||
Box <tr> at (10,10) content-size 23.90625x19 table-row children: not-inline | ||
BlockContainer <(anonymous)> (not painted) children: inline | ||
TextNode <#text> | ||
BlockContainer <td> at (11,11) content-size 6.8125x17 table-cell [BFC] children: inline | ||
frag 0 from TextNode start: 0, length: 1, rect: [11,11 6.34375x17] baseline: 13.296875 | ||
"1" | ||
TextNode <#text> | ||
BlockContainer <(anonymous)> (not painted) children: inline | ||
TextNode <#text> | ||
BlockContainer <(anonymous)> at (20.8125,19.5) content-size 0x0 table-cell [BFC] children: not-inline | ||
BlockContainer <(anonymous)> at (22.8125,19.5) content-size 11.09375x0 table-cell [BFC] children: not-inline | ||
BlockContainer <(anonymous)> (not painted) children: inline | ||
TextNode <#text> | ||
Box <tr> at (10,31) content-size 23.90625x19 table-row children: not-inline | ||
BlockContainer <(anonymous)> (not painted) children: inline | ||
TextNode <#text> | ||
BlockContainer <td> at (11,32) content-size 8.8125x17 table-cell [BFC] children: inline | ||
frag 0 from TextNode start: 0, length: 1, rect: [11,32 8.8125x17] baseline: 13.296875 | ||
"2" | ||
TextNode <#text> | ||
BlockContainer <(anonymous)> (not painted) children: inline | ||
TextNode <#text> | ||
BlockContainer <td> at (23.8125,32) content-size 9.09375x17 table-cell [BFC] children: inline | ||
frag 0 from TextNode start: 0, length: 1, rect: [23.8125,32 9.09375x17] baseline: 13.296875 | ||
"3" | ||
TextNode <#text> | ||
BlockContainer <(anonymous)> (not painted) children: inline | ||
TextNode <#text> | ||
BlockContainer <(anonymous)> (not painted) children: inline | ||
TextNode <#text> | ||
BlockContainer <(anonymous)> at (8,52) content-size 784x17 children: inline | ||
frag 0 from TextNode start: 1, length: 19, rect: [8,52 162.109375x17] baseline: 13.296875 | ||
"PASS (didn't crash)" | ||
TextNode <#text> | ||
|
||
ViewportPaintable (Viewport<#document>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x61] | ||
PaintableWithLines (TableWrapper(anonymous)) [8,8 27.90625x44] | ||
PaintableBox (Box<TABLE>) [8,8 27.90625x44] | ||
PaintableBox (Box<TBODY>) [10,10 23.90625x40] | ||
PaintableBox (Box<TR>) [10,10 23.90625x19] | ||
PaintableWithLines (BlockContainer<TD>) [10,10 8.8125x19] | ||
TextPaintable (TextNode<#text>) | ||
PaintableWithLines (BlockContainer(anonymous)) [20.8125,10 0x19] | ||
PaintableWithLines (BlockContainer(anonymous)) [22.8125,10 11.09375x19] | ||
PaintableBox (Box<TR>) [10,31 23.90625x19] | ||
PaintableWithLines (BlockContainer<TD>) [10,31 10.8125x19] | ||
TextPaintable (TextNode<#text>) | ||
PaintableWithLines (BlockContainer<TD>) [22.8125,31 11.09375x19] | ||
TextPaintable (TextNode<#text>) | ||
PaintableWithLines (BlockContainer(anonymous)) [8,52 784x17] | ||
TextPaintable (TextNode<#text>) |
10 changes: 10 additions & 0 deletions
10
Tests/LibWeb/Layout/input/table/colspan-overflow-crash.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<table> | ||
<tr> | ||
<td>1</td> | ||
</tr> | ||
<tr> | ||
<td colspan="2">2</td> | ||
<td>3</td> | ||
</tr> | ||
</table> | ||
PASS (didn't crash) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters