mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:37:44 +00:00
LibWeb: Fix min-content width calculation in dimension_box_on_line()
If inline-block is sized under min-content width constraint we should use its min-content width instead of max-content width like it was before.
This commit is contained in:
parent
91bb3af505
commit
c41e742de4
3 changed files with 55 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html><style type="text/css">
|
||||
* {
|
||||
border: 1px solid black;
|
||||
}
|
||||
div {
|
||||
position: relative;
|
||||
width: 500px;
|
||||
}
|
||||
h1 {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
font-size: 50px;
|
||||
}
|
||||
span {
|
||||
display: inline-block;
|
||||
}
|
||||
</style><div><h1><span>Skew is a web-first, cross-platform programming language with an optimizing compiler.</span></h1></div>
|
Loading…
Add table
Add a link
Reference in a new issue