ladybird/Tests/LibWeb/Layout/input/flex/inline-flex-baseline-of-child.html
BenJilks 3c897e7cf3 LibWeb: Propagate margin and offset when computing a box's baseline
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.
2024-07-15 21:31:51 +02:00

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>