2012-09-29 23:42:29 -07:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
Any copyright is dedicated to the Public Domain.
|
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
|
|
|
-->
|
2012-10-15 12:42:43 -07:00
|
|
|
<!-- Testcase to exercise each possible value of the 'justify-content'
|
2012-09-29 23:42:29 -07:00
|
|
|
property, in an auto-sized vertical flex container. The flex container
|
|
|
|
should shrink-wrap its contents' heights, leaving no packing space
|
2012-10-15 12:42:43 -07:00
|
|
|
available. So, the "justify-content" values should have no effect
|
2012-09-29 23:42:29 -07:00
|
|
|
in this testcase. -->
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
|
|
|
<style>
|
|
|
|
div.flexbox {
|
2012-10-15 12:42:43 -07:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2012-09-29 23:42:29 -07:00
|
|
|
margin-right: 2px;
|
|
|
|
float: left;
|
|
|
|
border: 1px dotted black;
|
|
|
|
}
|
|
|
|
div.a {
|
|
|
|
width: 20px;
|
2012-10-15 12:42:43 -07:00
|
|
|
flex: 0 10px;
|
2012-09-29 23:42:29 -07:00
|
|
|
background: lightgreen;
|
|
|
|
}
|
|
|
|
div.b {
|
|
|
|
width: 20px;
|
2012-10-15 12:42:43 -07:00
|
|
|
flex: 0 50px;
|
2012-09-29 23:42:29 -07:00
|
|
|
background: pink;
|
|
|
|
}
|
|
|
|
div.c {
|
|
|
|
width: 20px;
|
2012-10-15 12:42:43 -07:00
|
|
|
flex: 0 100px;
|
2012-09-29 23:42:29 -07:00
|
|
|
background: orange;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<!-- default (start) -->
|
|
|
|
<div class="flexbox">
|
|
|
|
<div class="a"/>
|
|
|
|
</div>
|
|
|
|
<div class="flexbox">
|
|
|
|
<div class="a"/><div class="b"></div>
|
|
|
|
</div>
|
|
|
|
<div class="flexbox">
|
|
|
|
<div class="a"/><div class="b"/><div class="c"/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- flex-start -->
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: flex-start">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/>
|
|
|
|
</div>
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: flex-start">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/><div class="b"/>
|
|
|
|
</div>
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: flex-start">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/><div class="b"/><div class="c"/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- flex-end -->
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: flex-end">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/>
|
|
|
|
</div>
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: flex-end">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/><div class="b"/>
|
|
|
|
</div>
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: flex-end">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/><div class="b"/><div class="c"/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- center -->
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: center">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/>
|
|
|
|
</div>
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: center">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/><div class="b"/>
|
|
|
|
</div>
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: center">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/><div class="b"/><div class="c"/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- space-between -->
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: space-between">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/>
|
|
|
|
</div>
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: space-between">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/><div class="b"/>
|
|
|
|
</div>
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: space-between">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/><div class="b"/><div class="c"/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- space-around -->
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: space-around">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/>
|
|
|
|
</div>
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: space-around">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/><div class="b"/>
|
|
|
|
</div>
|
2012-10-15 12:42:43 -07:00
|
|
|
<div class="flexbox" style="justify-content: space-around">
|
2012-09-29 23:42:29 -07:00
|
|
|
<div class="a"/><div class="b"/><div class="c"/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|