blob: 712e4a660ff93fcfa73a03f3c3fcb6b5e9b7cd3d [file] [log] [blame]
<!DOCTYPE html>
<html>
<link href="resources/flexbox.css" rel="stylesheet">
<style>
body {
margin: 0;
}
body, html {
height: 600px;
}
.flexbox {
width: 600px;
background-color: #aaa;
position: relative;
}
.flexbox div {
border: 0;
}
.flexbox :nth-child(1) {
background-color: blue;
}
.flexbox :nth-child(2) {
background-color: green;
}
</style>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../../resources/check-layout-th.js"></script>
<body onload="checkLayout('.flexbox')">
<div id=log></div>
<div class="flexbox" style="height: 50%;">
<div data-expected-height="50" data-offset-y="0" class="flex-one" style="height: 50px;"></div>
<div data-expected-height="300" data-offset-y="0" class="flex-one"></div>
</div>
</body>
</html>