forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb/Layout: Account for box-sizing in table width/height calculations
Fixes SerenityOS#1726 Fixes wpt/css/CSS2/abspos/abspos-containing-block-initial-004c.xht wpt/css/CSS2/abspos/abspos-containing-block-initial-004d.xht wpt/css/CSS2/abspos/abspos-containing-block-initial-005b.xht wpt/css/CSS2/abspos/abspos-containing-block-initial-005d.xht (cherry picked from commit a90b7026fb8939a773a6c5339364ea1a7d508fde)
- Loading branch information
Showing
5 changed files
with
57 additions
and
39 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
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,11 @@ | ||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline | ||
BlockContainer <html> at (0,0) content-size 800x66 [BFC] children: not-inline | ||
BlockContainer <body> at (8,8) content-size 784x50 children: not-inline | ||
TableWrapper <(anonymous)> at (8,8) content-size 50x50 [BFC] children: not-inline | ||
Box <div> at (18,18) content-size 30x30 table-box [TFC] children: not-inline | ||
|
||
ViewportPaintable (Viewport<#document>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x66] | ||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x50] | ||
PaintableWithLines (TableWrapper(anonymous)) [8,8 50x50] | ||
PaintableBox (Box<DIV>) [8,8 50x50] |
38 changes: 19 additions & 19 deletions
38
Tests/LibWeb/Layout/expected/table/table-header-and-footer-groups.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 |
---|---|---|
@@ -1,29 +1,29 @@ | ||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline | ||
BlockContainer <html> at (1,1) content-size 798x216 [BFC] children: not-inline | ||
TableWrapper <(anonymous)> at (9,9) content-size 300x200 [BFC] children: not-inline | ||
Box <body.table> at (10,10) content-size 298x198 table-box [TFC] children: not-inline | ||
Box <div.bottom> at (10,10) content-size 298x99 table-footer-group children: inline | ||
Box <(anonymous)> at (10,10) content-size 298x99 table-row children: inline | ||
BlockContainer <(anonymous)> at (10,10) content-size 298x17 table-cell [BFC] children: inline | ||
BlockContainer <html> at (1,1) content-size 798x218 [BFC] children: not-inline | ||
TableWrapper <(anonymous)> at (9,9) content-size 302x202 [BFC] children: not-inline | ||
Box <body.table> at (10,10) content-size 300x200 table-box [TFC] children: not-inline | ||
Box <div.bottom> at (10,10) content-size 300x100 table-footer-group children: inline | ||
Box <(anonymous)> at (10,10) content-size 300x100 table-row children: inline | ||
BlockContainer <(anonymous)> at (10,10) content-size 300x17 table-cell [BFC] children: inline | ||
frag 0 from TextNode start: 0, length: 6, rect: [10,10 56.109375x17] baseline: 13.296875 | ||
"bottom" | ||
TextNode <#text> | ||
Box <div.top> at (10,109) content-size 298x99 table-header-group children: inline | ||
Box <(anonymous)> at (10,109) content-size 298x99 table-row children: inline | ||
BlockContainer <(anonymous)> at (10,109) content-size 298x17 table-cell [BFC] children: inline | ||
frag 0 from TextNode start: 0, length: 3, rect: [10,109 26.640625x17] baseline: 13.296875 | ||
Box <div.top> at (10,110) content-size 300x100 table-header-group children: inline | ||
Box <(anonymous)> at (10,110) content-size 300x100 table-row children: inline | ||
BlockContainer <(anonymous)> at (10,110) content-size 300x17 table-cell [BFC] children: inline | ||
frag 0 from TextNode start: 0, length: 3, rect: [10,110 26.640625x17] baseline: 13.296875 | ||
"top" | ||
TextNode <#text> | ||
|
||
ViewportPaintable (Viewport<#document>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x218] | ||
PaintableWithLines (TableWrapper(anonymous)) [9,9 300x200] | ||
PaintableBox (Box<BODY>.table) [9,9 300x200] | ||
PaintableBox (Box<DIV>.bottom) [10,10 298x99] | ||
PaintableBox (Box(anonymous)) [10,10 298x99] | ||
PaintableWithLines (BlockContainer(anonymous)) [10,10 298x99] | ||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x220] | ||
PaintableWithLines (TableWrapper(anonymous)) [9,9 302x202] | ||
PaintableBox (Box<BODY>.table) [9,9 302x202] | ||
PaintableBox (Box<DIV>.bottom) [10,10 300x100] | ||
PaintableBox (Box(anonymous)) [10,10 300x100] | ||
PaintableWithLines (BlockContainer(anonymous)) [10,10 300x100] | ||
TextPaintable (TextNode<#text>) | ||
PaintableBox (Box<DIV>.top) [10,109 298x99] | ||
PaintableBox (Box(anonymous)) [10,109 298x99] | ||
PaintableWithLines (BlockContainer(anonymous)) [10,109 298x99] | ||
PaintableBox (Box<DIV>.top) [10,110 300x100] | ||
PaintableBox (Box(anonymous)) [10,110 300x100] | ||
PaintableWithLines (BlockContainer(anonymous)) [10,110 300x100] | ||
TextPaintable (TextNode<#text>) |
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,2 @@ | ||
<!doctype html> | ||
<div style="width:30px; height:30px; border:10px solid black; display:table;"> |
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