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:
parent
2a8f558911
commit
bab1d09d92
14 changed files with 188 additions and 36 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue