Truly independent web browser
Tests/LibWeb: Add test for a float after a short inline-block
Andreas Klinge0e8627b974f
diff --git a/Tests/LibWeb/Layout/expected/float-after-short-inline-block-goes-below-line-box.txt b/Tests/LibWeb/Layout/expected/float-after-short-inline-block-goes-below-line-box.txtnew file mode 100644index 00000000000..ff4fd773fff--- /dev/null+++ b/Tests/LibWeb/Layout/expected/float-after-short-inline-block-goes-below-line-box.txt@@ -0,0 +1,10 @@+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 [0,0] [0+0+0 400 0+0+400] [0+0+0 16 0+0+0] children: inline+ frag 0 from BlockContainer start: 0, length: 0, rect: [320,11 200x1] baseline: 1+ BlockContainer <div.short> at [320,11] inline-block [20+0+0 200 0+0+0] [0+0+0 1 0+0+0] [BFC] children: not-inline+ BlockContainer <div.wide> at [0,1] floating [0+0+0 300 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline+ TextNode <#text> (not painted)++SC for Viewport<#document> [0,0 800x600] (z-index: auto)+ SC for BlockContainer<HTML> [0,0 800x16] (z-index: auto)diff --git a/Tests/LibWeb/Layout/input/float-after-short-inline-block-goes-below-line-box.html b/Tests/LibWeb/Layout/input/float-after-short-inline-block-goes-below-line-box.htmlnew file mode 100644index 00000000000..3b7a8046cff--- /dev/null+++ b/Tests/LibWeb/Layout/input/float-after-short-inline-block-goes-below-line-box.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<style>+body { margin: 0; width: 400px; }+.short { display: inline-block; margin-left: 20px; width: 200px; height: 1px; background: blue; }+.wide { float: left; width: 300px; height: 10px; background: orange; }+</style>+<div class="short"></div><div class="wide"></div>