Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-grid/grid-lanes/overflow/grid-lanes-overflowing-container-010.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Grid Lanes Test: padding overflowing the grid-lanes container with column-axis tracks</title>
<link rel="author" title="Yanling Wang" href="mailto:yanlingwang@microsoft.com">
<link rel="match" href="../../grid-model/reference/100x100-grey-box-with-horizontal-scrollbar.html">
<meta name="assert" content="This test verifies that a horizontal scrollbar is shown when end-edge padding causes the column track to overflow a column-direction grid-lanes container.">
<style>
.grid-lanes {
display: grid-lanes;
flow-tolerance: 0;
grid-template-columns: 100px;
width: 100px;
height: 100px;
box-sizing: border-box;
padding: 0 50px 50px 0;
background-color: grey;
overflow: auto;
}
</style>
</head>
<body>
<p>The test passes if you see a grey square below and only the horizontal scrollbar is visible.</p>
<div class="grid-lanes"></div>
</body>
</html>