servo/tests/ref/flex_row_direction.html
Kyle Zentner e3bbcb50d2 Add reftests for basic flexbox functionality.
These tests (flex_row_direction.html and flex_column_direction.html) are
correct, but only test the small amount of current flexbox
functionality.
2015-08-21 15:59:19 -07:00

34 lines
717 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: flex container should layout flex items horizontally</title>
<link rel="author" title="Kyle Zentner" href="mailto:zentner.kyle@gmail.com">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/">
<style>
body {
margin: 0;
}
.flexbox {
display: flex;
width: 300px;
}
.first-item {
background: orange;
height: 100px;
flex: 1 0 auto;
}
.second-item {
background: blue;
height: 100px;
flex: 1 0 auto;
}
</style>
</head>
<body>
<div class="flexbox">
<div class="first-item"></div>
<div class="second-item"></div>
</div>
</body>
</html>