mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +00:00
LibWeb: Support max-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
358d94b57a
commit
97c510329c
4 changed files with 53 additions and 1 deletions
|
@ -0,0 +1,22 @@
|
|||
<!doctype html><style>
|
||||
* {
|
||||
border: 1px solid black;
|
||||
}
|
||||
.foo {
|
||||
background: pink;
|
||||
width: max-content;
|
||||
}
|
||||
.bar {
|
||||
background: orange;
|
||||
width: 50%;
|
||||
max-width: max-content;
|
||||
}
|
||||
.baz {
|
||||
background: magenta;
|
||||
width: 1%;
|
||||
min-width: max-content;
|
||||
}
|
||||
</style>
|
||||
<div class="foo">width: max-content</div>
|
||||
<div class="bar">max-width: max-content</div>
|
||||
<div class="baz">min-width: max-content</div>
|
Loading…
Add table
Add a link
Reference in a new issue