
We're gonna need to handle this in many more places, this patch only adds it to calculate_inner_width().
22 lines
410 B
HTML
22 lines
410 B
HTML
<!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>
|