Truly independent web browser
Tests/LibWeb: Test a table too wide for the space next to a float
Andreas Klingae97ce79559b
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/table-too-wide-for-float-gap-moves-below-float.txt b/Tests/LibWeb/Layout/expected/block-and-inline/table-too-wide-for-float-gap-moves-below-float.txtnew file mode 100644index 00000000000..80c0d7d9c4b--- /dev/null+++ b/Tests/LibWeb/Layout/expected/block-and-inline/table-too-wide-for-float-gap-moves-below-float.txt@@ -0,0 +1,14 @@+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 70 0+0+0] [BFC] children: not-inline+ BlockContainer <body> at [0,0] [0+0+0 600 0+0+200] [0+0+0 70 0+0+0] children: not-inline+ BlockContainer <div.bar> at [0,0] [0+0+0 600 0+0+0] [0+0+0 20 0+0+0] children: not-inline+ BlockContainer <div.float> at [0,0] floating [0+0+0 150 0+0+0] [0+0+0 25 0+0+0] [BFC] children: not-inline+ BlockContainer <(anonymous)> at [0,20] [0+0+0 600 0+0+0] [0+0+0 0 0+0+0] children: inline+ TextNode <#text> (not painted)+ TableWrapper <(anonymous)> at [150,20] [0+0+0 600 0+0+0] [0+0+0 50 0+0+0] [BFC] children: not-inline+ Box <div.table> at [150,20] table-box [0+0+0 600 0+0+-150] [0+0+0 50 0+0+0] [TFC] children: not-inline+ BlockContainer <(anonymous)> at [0,70] [0+0+0 600 0+0+0] [0+0+0 0 0+0+0] children: inline+ TextNode <#text> (not painted)++SC for Viewport<#document> [0,0 800x600] (z-index: auto)+ SC for BlockContainer<HTML> [0,0 800x70] (z-index: auto)diff --git a/Tests/LibWeb/Layout/input/block-and-inline/table-too-wide-for-float-gap-moves-below-float.html b/Tests/LibWeb/Layout/input/block-and-inline/table-too-wide-for-float-gap-moves-below-float.htmlnew file mode 100644index 00000000000..a69b615d5f8--- /dev/null+++ b/Tests/LibWeb/Layout/input/block-and-inline/table-too-wide-for-float-gap-moves-below-float.html@@ -0,0 +1,9 @@+<!DOCTYPE html>+<style>+body { margin: 0; width: 600px; }+.bar { height: 20px; }+.float { float: left; width: 150px; height: 25px; background: orange; }+.table { display: table; width: 100%; height: 50px; background: green; }+</style>+<div class="bar"><div class="float"></div></div>+<div class="table"></div>