Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

  • This test has a WPT meta file that expects 1 subtest issues.
  • This WPT test may be referenced by the following Test IDs:
<!DOCTYPE html>
<html>
<title>CSS Grid Lanes Test: intrinsic auto-repeat rows sized by a larger trailing subgrid item</title>
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
.grid-lanes {
display: grid-lanes;
flow-tolerance: 0;
grid-template-rows: repeat(auto-fill, auto);
height: 600px;
width: 100px;
}
.grid-lanes > div {
width: 100px;
height: 100px;
}
.subgrid {
display: grid;
grid-template-rows: subgrid;
}
.subgrid > div {
width: 100px;
height: 150px;
}
</style>
<div class="grid-lanes">
<div></div>
<div></div>
<div class="subgrid" style="grid-row: auto / span 1;">
<div></div>
</div>
</div>
<script>
test(function() {
const container = document.querySelector('.grid-lanes');
const computedStyle = window.getComputedStyle(container);
assert_equals(computedStyle.getPropertyValue('grid-template-rows'),
"150px 150px 150px 150px");
});
</script>
</html>