Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>CSS Grid Lanes Test: grid-lanes-direction dynamic change triggers relayout</title>
<link rel="author" title="Yanling Wang" href="mailto:yanlingwang@microsoft.com">
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<link rel="match" href="../../../reference/ref-filled-green-100px-square-only.html">
<style>
.grid-lanes {
display: grid-lanes;
grid-lanes-direction: column;
}
.item {
width: 50px;
height: 100px;
background: green;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square.</p>
<div class="grid-lanes" id="gridLanes">
<div class="item"></div>
<div class="item"></div>
</div>
<script>
document.body.offsetTop;
const gridLanes = document.getElementById("gridLanes");
gridLanes.style.gridLanesDirection = "row";
</script>
</body>
</html>