mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
LibWeb: Add layout tests for floats, margins collapsing and positioning
Those are copied from 'Base/res/html/misc/'.
This commit is contained in:
parent
12eca612bc
commit
900cd78121
24 changed files with 865 additions and 0 deletions
26
Tests/LibWeb/Layout/input/margin-collapse-2.html
Normal file
26
Tests/LibWeb/Layout/input/margin-collapse-2.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<style>
|
||||
body {
|
||||
font-family: 'SerenitySans';
|
||||
}
|
||||
#foo {
|
||||
border: 1px solid red;
|
||||
margin-bottom: 25px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
#bar {
|
||||
border: 1px solid green;
|
||||
margin-bottom: 25px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
#baz {
|
||||
border: 1px solid blue;
|
||||
width: 100px;
|
||||
margin-top: -20px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
<div id=foo>foo</div>
|
||||
<div id=bar>bar</div>
|
||||
<div id=baz>baz</div>
|
Loading…
Add table
Add a link
Reference in a new issue