Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="This test verifies that when resolving the row sizes, grid container's max-block-size is ignored.">
<style>
.grid {
display: grid;
inline-size: 100px;
block-size: auto;
max-block-size: 10px;
}
.item {
background: green;
min-height: 0;
line-height: 0;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class="grid">
<div class="item"><canvas width="100" height="100"></canvas></div>
</div>