1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 03:08:11 +00:00
serenity/Tests/LibWeb/Layout/input/block-and-inline/block-with-max-content-width.html
Andreas Kling 97c510329c 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().
2023-05-29 21:29:25 +02:00

22 lines
410 B
HTML

<!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>