Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Grid Lanes Test: oversized item overflowing in both dimensions</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="../../grid-model/reference/100x100-grey-box-with-scrollbars.html">
<meta name="assert" content="This test verifies that both scrollbars are shown when an oversized item overflows a row-direction grid-lanes container in both dimensions.">
<style>
.grid-lanes {
display: grid-lanes;
grid-template-rows: auto;
flow-tolerance: 0;
width: 100px;
height: 100px;
background-color: grey;
overflow: auto;
}
.item {
width: 150px;
height: 150px;
}
</style>
</head>
<body>
<p>The test passes if you see a grey square below and both scrollbars are visible.</p>
<div class="grid-lanes">
<div class="item"></div>
</div>
</body>
</html>