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/alignment/column-justify-items-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Grid Lanes Test: `flow-start` differs from start only when the alignment axis is reversed</title>
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
<link rel="match" href="column-justify-items-001-ref.html">
<style>
.label {
font: 16px/1 monospace;
}
.grid-lanes {
display: grid-lanes;
grid-template-columns: repeat(2, 80px);
width: 200px;
height: 100px;
border: 1px solid;
margin-bottom: 4px;
}
.fill-reverse {
grid-lanes-direction: column fill-reverse;
}
.track-reverse {
grid-lanes-direction: column track-reverse;
}
item {
display: block;
width: 40px;
height: 26px;
background: green;
color: white;
}
</style>
</head>
<body>
<div class="label">column fill-reverse: justify-items: flow-start</div>
<div class="grid-lanes fill-reverse" style="justify-items: flow-start;">
<item style="grid-column: 1;">1</item>
<item style="grid-column: 1;">2</item>
<item style="grid-column: 2;">3</item>
<item style="grid-column: 2;">4</item>
</div>
<div class="label">column track-reverse: justify-items: flow-start</div>
<div class="grid-lanes track-reverse" style="justify-items: flow-start;">
<item style="grid-column: 1;">1</item>
<item style="grid-column: 1;">2</item>
<item style="grid-column: 2;">3</item>
<item style="grid-column: 2;">4</item>
</div>
</body>
</html>