mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
LibWeb: Set zero underflow when calculating intrinsic width of block
This fix resolves issue where calculating the min size of a block could result in incorrect value if width of the block's children was compensated by margins to fit into container width (which is equal to 0 during min size calculation).
This commit is contained in:
parent
00e3e82bbd
commit
6cec431720
4 changed files with 55 additions and 5 deletions
|
@ -0,0 +1,22 @@
|
|||
<style>
|
||||
* {
|
||||
font-family: 'SerenitySans';
|
||||
}
|
||||
|
||||
.ambox {
|
||||
border: 1px solid #a2a9b1;
|
||||
}
|
||||
|
||||
.mbox-text {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mbox-image-div {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background-color: orange;
|
||||
}
|
||||
</style><table class="ambox">
|
||||
<tr><td class="mbox-image"><div class="mbox-image-div"></div></td><td class="mbox-text">
|
||||
In a scene set in a lawyer's office, the lawyer sits alone and bounces a rubber ball against the wall. They receive a call from their assistant who expresses frustration over a packed waiting room and the lawyer's lack of clients. The lawyer then looks at some papers from a large envelope, which turn out to be divorce papers from their significant other. Finally, the lawyer instructs their assistant to send in the next client.
|
||||
</td></tr></table>
|
Loading…
Add table
Add a link
Reference in a new issue