mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 23:50:06 +00: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.
15 lines
279 B
HTML
15 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>
|