Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Grid Lanes Test: leading stacking-axis padding is included in grid-lanes scrollable overflow</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-lanes-overflowing-container-013-ref.html">
<meta name="assert" content="This test verifies that the inflow-bounds of a row-direction grid-lanes container are offset by the leading inline padding, so the scrollable overflow accounts for both the leading and trailing stacking-axis padding.">
<style>
.grid-lanes {
display: grid-lanes;
flow-tolerance: 0;
grid-template-rows: 50px;
width: 100px;
height: 100px;
box-sizing: border-box;
padding: 0 50px 0 20px;
overflow: auto;
}
</style>
</head>
<body>
<p>Test passes if the container has a horizontal scrollbar and the item starts after a small left gap.</p>
<div class="grid-lanes">
<div style="width:60px; height:50px; background:rgba(70,130,180,0.6);"></div>
</div>
</body>
</html>