mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
When traversing the layout tree to find an appropriate box child to derive the baseline from. Only the child's margin and offset was being applied. Now we sum each offset on the recursive call.
16 lines
279 B
HTML
16 lines
279 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
* {
|
|
border: 1px solid grey;
|
|
}
|
|
|
|
span {
|
|
display: inline-flex;
|
|
width: 180px;
|
|
height: 64px;
|
|
background: yellow;
|
|
}
|
|
</style>
|
|
|
|
<div><span>1</span><span style="margin-top: 20px">2</span><span>3</span></div>
|