mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
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.
This commit is contained in:
parent
fd86509ef8
commit
62f15f94d2
Notes:
sideshowbarker
2024-07-17 11:06:06 +09:00
Author: https://github.com/axgallo
Commit: 62f15f94d2
Pull-request: https://github.com/SerenityOS/serenity/pull/20249
9 changed files with 78 additions and 8 deletions
|
@ -0,0 +1,21 @@
|
|||
<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>
|
Loading…
Add table
Add a link
Reference in a new issue