mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
LibWeb: Derive box baseline from last child *with line boxes*
Before this change, we always derived a box's baseline from its last child, even if the last child didn't have any line boxes inside. This caused baselines to slip further down vertically than expected. There are more baseline alignment issues to fix, but this one was responsible for a fair chunk of trouble. :^)
This commit is contained in:
parent
7b3902e3d5
commit
ccf35a973f
7 changed files with 107 additions and 8 deletions
|
@ -0,0 +1,16 @@
|
|||
<style>
|
||||
* {
|
||||
border: 1px solid black;
|
||||
}
|
||||
.ib {
|
||||
display: inline-block;
|
||||
}
|
||||
.ib div {
|
||||
background: pink;
|
||||
}
|
||||
.ib div.whee {
|
||||
width: 200px;
|
||||
height: 50px;
|
||||
background: orange;
|
||||
}
|
||||
</style><body>Hello friends<div class=ib><div>1st</div><div>2nd</div><div class="whee"></div>
|
|
@ -0,0 +1,15 @@
|
|||
<style>
|
||||
* {
|
||||
border: 1px solid black;
|
||||
}
|
||||
.ib {
|
||||
display: inline-block;
|
||||
}
|
||||
.ib div {
|
||||
background: pink;
|
||||
}
|
||||
.ib div.float {
|
||||
background: orange;
|
||||
float: left;
|
||||
}
|
||||
</style><body>Hello friends<div class=ib><div>1st</div><div>2nd</div><div class="float">float</div>
|
Loading…
Add table
Add a link
Reference in a new issue