mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:27:43 +00:00
LibWeb: Support min-content
for width
, min-width
and max-width
We're gonna need to handle this in many more places, this patch only adds it to calculate_inner_width().
This commit is contained in:
parent
97c510329c
commit
af004ff0ef
4 changed files with 62 additions and 1 deletions
|
@ -0,0 +1,22 @@
|
|||
<!doctype html><style>
|
||||
* {
|
||||
border: 1px solid black;
|
||||
}
|
||||
.foo {
|
||||
background: pink;
|
||||
width: min-content;
|
||||
}
|
||||
.bar {
|
||||
background: orange;
|
||||
width: 50%;
|
||||
max-width: min-content;
|
||||
}
|
||||
.baz {
|
||||
background: magenta;
|
||||
width: 1%;
|
||||
min-width: min-content;
|
||||
}
|
||||
</style>
|
||||
<div class="foo">width: min-content</div>
|
||||
<div class="bar">max-width: min-content</div>
|
||||
<div class="baz">min-width: min-content</div>
|
Loading…
Add table
Add a link
Reference in a new issue