diff options
author | Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com> | 2023-01-30 23:40:22 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-06 20:42:14 +0100 |
commit | 900cd78121b7e84def3f5b45f6429263e525177f (patch) | |
tree | 269f3d3a8f528ff21f31966a9e1cece3beb6c34d /Tests/LibWeb/Layout/input/position-absolute-from-edges.html | |
parent | 12eca612bc146e50beb8107e893e05b92a5c1234 (diff) | |
download | serenity-900cd78121b7e84def3f5b45f6429263e525177f.zip |
LibWeb: Add layout tests for floats, margins collapsing and positioning
Those are copied from 'Base/res/html/misc/'.
Diffstat (limited to 'Tests/LibWeb/Layout/input/position-absolute-from-edges.html')
-rw-r--r-- | Tests/LibWeb/Layout/input/position-absolute-from-edges.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/input/position-absolute-from-edges.html b/Tests/LibWeb/Layout/input/position-absolute-from-edges.html new file mode 100644 index 0000000000..e04ddf71cc --- /dev/null +++ b/Tests/LibWeb/Layout/input/position-absolute-from-edges.html @@ -0,0 +1,48 @@ +<style> +#container { + position: absolute; + width: 500px; + height: 400px; + border: 1px solid black; +} +#red { + position: absolute; + left: 20px; + top: 20px; + background: red; + width: 100px; + height: 100px; + border: 10px solid gray; +} +#green { + position: absolute; + right: 20px; + top: 20px; + background: green; + width: 100px; + height: 100px; + margin: 50px; +} +#blue { + position: absolute; + left: 20px; + bottom: 20px; + background: blue; + width: 100px; + height: 100px; +} +#yellow { + position: absolute; + right: 20px; + bottom: 20px; + background: yellow; + width: 100px; + height: 100px; +} +</style> +<div id=container> + <div id=red></div> + <div id=green></div> + <div id=blue></div> + <div id=yellow></div> +</div> |