Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com">
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<meta name="assert" content="Grid item's min content contribution should be its max-content size">
<style>
.grid-box {
display: grid;
width: max-content;
grid-template-columns: min-content;
font: 20px/1 Ahem;
background-color: green;
}
.grid-item {
width: max-content;
color: green;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square.</p>
<div class="grid-box">
<div class="grid-item">x x x</div>
<div style="height: 80px;"></div>
</div>
</body>
</html>