Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-flexbox/flex-order.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: flex order</title>
<link rel="author" title="Mitsuteru Sawa" href="mailto:mitsuteru.s@gmail.com">
<link rel="match" href="flex-order-ref.html">
<meta name="assert" content="ordered flex items should ordered properly">
<style>
#container {
display: flex;
}
#lowOrdinal {
order: 3;
background: red;
height: 100px; width: 100px;
}
#highOrdinal {
order: 1;
background: lime;
height: 100px; width: 100px;
}
#middleOrdinal {
order: 2;
background: orange;
height: 100px; width: 100px;
}
</style>
</head>
<body>
<div id="container">
<div id="highOrdinal"></div>
<div id="lowOrdinal"></div>
<div id="middleOrdinal"></div>
</div>
</body>
</html>