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:
- /css/css-grid/grid-lanes/subgrid/grid-subgridded-to-grid-lanes/track-sizing/row-subgrid-auto-repeat-auto-004.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<title>CSS Grid Lanes Test: intrinsic auto-repeat row lane sized by multiple subgrid items</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: 200px;
}
.grid-lanes > div {
width: 100px;
height: 100px;
}
.subgrid {
display: grid;
grid-template-rows: subgrid;
grid-auto-columns: 50px;
}
</style>
<div class="grid-lanes">
<div></div>
<div class="subgrid" style="grid-row: auto / span 1;">
<div style="height: 100px;"></div>
<div style="height: 130px;"></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>