1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 23:08:11 +00:00
serenity/Tests/LibWeb/Layout/input/block-and-inline/float-4.html
Sebastian Zaha 553694679e LibWeb: Fix alternating-sides float positioning
The "y" check for when to reset float side positioning was comparing an
offset that included the border, while the offset of the other side does
not.
2023-07-02 18:43:20 +02:00

29 lines
453 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
body {
width: 780px;
text-align: center
}
.right {
border: 1px solid red;
width: 50px;
height: 50px;
float: right;
}
.left {
border: 1px solid green;
width: 50px;
height: 50px;
float: left;
}
</style>
</head>
<body>
<div class="left" >Left1</div>
<div class="right">Right1</div>
<div class="left" >Left2</div>
<div class="right">Right2</div>
</body>
</html>