1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 23:55:06 +00:00
serenity/Tests/LibWeb/Layout/input/block-and-inline/clear-both-from-inline-formatting-context.html
Andi Gallo 62f15f94d2 LibWeb: Better handling of floating boxes from inline formatting context
Handle the clear property for floating boxes and add tracking for
vertical clearence within an inline formatting context.
2023-08-01 07:38:19 +02:00

21 lines
No EOL
222 B
HTML

<style>
.left {
float: left;
}
.right {
float: right;
}
.c {
margin-top: 70px;
clear: both;
float: left;
}
</style>
<div>
<h1 class="left">A</h1>
<h1 class="right">B</h1>
<div class="c">X</div>
</div>