mirror of
https://github.com/RGBCube/serenity
synced 2025-07-04 05:37:36 +00:00

With this change "max-width: max-content" is treated as "none" when the available width is also "max-content". This fix prevents a stack overflow in the grid track size maximization algorithm by avoiding recursive calls to calculate_max_width() when determining the maximum grid container size.
14 lines
254 B
HTML
14 lines
254 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
.grid {
|
|
display: grid;
|
|
max-width: max-content;
|
|
}
|
|
|
|
.item {
|
|
background-color: magenta;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
</style>
|
|
<div class="grid"><div class="item"></div></div>
|