ladybird/Tests/LibWeb/Layout/input/grid/grid-with-min-content-max-width.html
Aliaksandr Kalenik e95226839e LibWeb: Fix infinite recursion when max-width is min/max-content in GFC
Treat max-width as auto when it's specified to min/max-content and
available size is intrinsic constraint.

Fixes stack overflow on https://claude.ai/
2024-10-30 08:47:52 +01:00

14 lines
458 B
HTML

<!doctype html><style>
* { outline: 1px solid black; }
.constrained {
max-width: min-content;
display: grid;
}
.wrapper {
background: yellow;
width: max-content;
}
</style><body><div class="wrapper"><div class="constrained">
hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello
<div></div></div></div>