1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:48:13 +00:00

LibWeb: Derive baseline from rightmost descendant

Make the existing algorithm recursive, accounting for boxes which
contain line boxes indirectly. Fixes some button alignment issues on
Wikipedia.
This commit is contained in:
Andi Gallo 2023-08-20 08:50:28 +00:00 committed by Andreas Kling
parent 2a8f558911
commit bab1d09d92
14 changed files with 188 additions and 36 deletions

View file

@ -0,0 +1,23 @@
<style>
.ib {
display: inline-block;
}
.label {
display: inline-block;
border: 1px solid black;
font-size: 20px;
}
button {
display: inline-block;
border: 1px solid black;
background-color: transparent;
font-size: 40px;
}
</style>
<div class="ib">
<div class="label">A</div>
<button>B</button>
</div>