mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
Whenever we generate line boxes, we might end up with a residual vertical float clearance by way of having a `<br>` with `clear: ..` set. Set the Y offset of the next block level box to place by this vertical clearance. Relates to #4058.
16 lines
182 B
HTML
16 lines
182 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
.a {
|
|
background: green;
|
|
float: left;
|
|
height: 100px;
|
|
width: 100px;
|
|
}
|
|
.b {
|
|
clear: both;
|
|
}
|
|
</style>
|
|
<div class="a"></div>
|
|
<br class="b">
|
|
foo
|