Files
sousa-gecko/testing/web-platform/tests/css/css-grid/grid-flex-spanning-items-001.html
T
Emily McDonough 02d43f8837 Bug 1955109 Part 1 - Do not allow grid flex tracks to grow during intrinsic sizing of the grid container itself r=layout-grid-reviewers,dholbert
Add a test which is specifically failed before this patch (with the pref
enabled) but is fixed by the patch. This specific case seems to not be tested
in isolation by WPT.

This fixes the major issue we found with bug 1938619, and enables the pref
layout.css.grid-flex-spanning-items-intrinsic-sizing.enabled in nightly-only.

Differential Revision: https://phabricator.services.mozilla.com/D243030
2025-03-26 21:19:24 +00:00

28 lines
709 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Grid Layout Test: Intrinsic sizing of grid with spanning flex items in a min-content container</title>
<link rel="match" href="grid-flex-spanning-items-001-ref.html"/>
<link rel="help" href="https://drafts.csswg.org/css-grid-2/#intrinsic-sizes"/>
<link rel="author" title="Emily McDonough" href="mailto:emcdonough@mozilla.com"/>
<style>
#mygrid {
display: grid;
grid-template-columns: 1fr 30px;
border: 10px solid fuchsia;
width: min-content;
}
#item {
grid-column: 1 / span 2;
}
#filler {
width: 300px;
height: 50px;
background: aqua;
}
</style>
<div id="mygrid">
<div id="item">
<div id="filler"></div>
</div>
</div>