blob: ceb0e066c5af31f4b26fbb9f2dfbf17b4a88e6fb [file] [log] [blame]
<!doctype html>
<html>
<head>
<style>
.default {
display: flex;
flex-wrap: wrap;
position: relative;
height: 75px;
border: 1px solid red;
margin: 5px;
}
.verticalWriting {
display: flex;
flex-wrap: wrap;
position: relative;
width: 75px;
border: 1px solid red;
margin: 5px;
writing-mode: vertical-lr;
}
</style>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../../resources/check-layout-th.js"></script>
</head>
<body onload="checkLayout('.default, .verticalWriting'); ">
<div id=log></div>
<p>Test for BUG=324178: Chrome incorrectly honors "align-content" in "flex-wrap: wrap" flex containers that only have a single line</p>
<div class="default" style="align-content: flex-start">
<div data-offset-y="0">This text should be at the top of it's container</div>
</div>
<div class="default" style="align-content: flex-end">
<div data-offset-y="0">This text should be at the top of it's container</div>
</div>
<div class="default" style="align-content: center">
<div data-offset-y="0">This text should be at the top of it's container</div>
</div>
<div class="default" style="align-content: space-between">
<div data-offset-y="0">This text should be at the top of it's container</div>
</div>
<div class="default" style="align-content: space-around">
<div data-offset-y="0">This text should be at the top of it's container</div>
</div>
<div class="default" style="align-content: space-evenly">
<div data-offset-y="0">This text should be at the top of it's container</div>
</div>
<div class="default" style="align-content: stretch">
<div data-offset-y="0">This text should be at the top of it's container</div>
</div>
<div class="verticalWriting" style="align-content: flex-start">
<div data-offset-x="0">This text should be at the left of it's container</div>
</div>
<div class="verticalWriting" style="align-content: flex-end">
<div data-offset-x="0">This text should be at the left of it's container</div>
</div>
<div class="verticalWriting" style="align-content: center">
<div data-offset-x="0">This text should be at the left of it's container</div>
</div>
<div class="verticalWriting" style="align-content: space-between">
<div data-offset-x="0">This text should be at the left of it's container</div>
</div>
<div class="verticalWriting" style="align-content: space-around">
<div data-offset-x="0">This text should be at the left of it's container</div>
</div>
<div class="verticalWriting" style="align-content: stretch">
<div data-offset-x="0">This text should be at the left of it's container</div>
</div>
</body>
</html>