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/grid-lanes-flow-start-flow-end-justify-properties.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>'flow-start' and 'flow-end' behave like 'flex-start' and 'flex-end' for Grid Lanes justify-* properties</title>
<link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
<link rel="match" href="grid-lanes-flow-start-flow-end-justify-properties-ref.html">
<style>
html, body {
color: black; background-color: white; font: 12.8px/1 monospace; padding: 0; margin: 0;
}
.row {
font-size: 0;
}
.container {
width: 80px;
height: 80px;
border: 1px solid black;
margin: 4px;
vertical-align: top;
}
item {
display: block;
width: 20px;
height: 20px;
background: green;
}
.lanes-column {
display: inline grid-lanes;
grid-lanes-direction: column;
grid-template-columns: auto;
}
.lanes-row {
display: inline grid-lanes;
grid-lanes-direction: row;
grid-template-rows: 40px;
}
</style>
</head>
<body>
<div class="row">
<div class="container lanes-column" style="justify-content: flow-start"><item></item></div>
<div class="container lanes-column" style="justify-content: flow-end"><item></item></div>
<div class="container lanes-column" style="justify-items: flow-start"><item></item></div>
<div class="container lanes-column" style="justify-items: flow-end"><item></item></div>
<div class="container lanes-column"><item style="justify-self: flow-start"></item></div>
<div class="container lanes-column"><item style="justify-self: flow-end"></item></div>
</div>
<div class="row">
<div class="container lanes-row" style="justify-content: flow-start"><item></item></div>
<div class="container lanes-row" style="justify-content: flow-end"><item></item></div>
<div class="container lanes-row" style="justify-items: flow-start"><item></item></div>
<div class="container lanes-row" style="justify-items: flow-end"><item></item></div>
<div class="container lanes-row"><item style="justify-self: flow-start"></item></div>
<div class="container lanes-row"><item style="justify-self: flow-end"></item></div>
</div>
</body>
</html>