layout/reftests/w3c-css/submitted/flexbox/flexbox-justify-content-vert-3.xhtml

Thu, 15 Jan 2015 21:13:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:13:52 +0100
branch
TOR_BUG_9701
changeset 12
7540298fafa1
permissions
-rw-r--r--

Remove forgotten relic of ABI crash risk averse overloaded method change.

michael@0 1 <?xml version="1.0" encoding="UTF-8"?>
michael@0 2 <!--
michael@0 3 Any copyright is dedicated to the Public Domain.
michael@0 4 http://creativecommons.org/publicdomain/zero/1.0/
michael@0 5 -->
michael@0 6 <!-- Testcase with a series of vertical flex containers testing each possible
michael@0 7 value of the 'justify-content' property, and with each individual
michael@0 8 flex item being larger than the flexbox itself (so that there isn't any
michael@0 9 packing space available).
michael@0 10
michael@0 11 * For 'flex-start'/'space-between', we should overflow on the end
michael@0 12 (bottom) side.
michael@0 13 * For 'flex-end', we should overflow on the start (top) side.
michael@0 14 * For 'center'/'space-around', we should overflow equally on both sides.
michael@0 15 -->
michael@0 16 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 17 <head>
michael@0 18 <title>CSS Test: Testing 'justify-content' in a vertical flex container, and its effects on flex items that overflow</title>
michael@0 19 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
michael@0 20 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#justify-content-property"/>
michael@0 21 <link rel="match" href="flexbox-justify-content-vert-3-ref.xhtml"/>
michael@0 22 <style>
michael@0 23 body { margin-top: 100px; } /* So we can see top-overflowed stuff */
michael@0 24 div.flexbox {
michael@0 25 height: 30px;
michael@0 26 display: flex;
michael@0 27 flex-direction: column;
michael@0 28 margin-right: 2px;
michael@0 29 float: left;
michael@0 30 }
michael@0 31 div.a {
michael@0 32 width: 20px;
michael@0 33 flex: 0 0 35px;
michael@0 34 background: lightgreen;
michael@0 35 }
michael@0 36 div.b {
michael@0 37 width: 20px;
michael@0 38 flex: 0 0 40px;
michael@0 39 background: pink;
michael@0 40 }
michael@0 41 div.c {
michael@0 42 width: 20px;
michael@0 43 flex: 0 0 45px;
michael@0 44 background: orange;
michael@0 45 }
michael@0 46 </style>
michael@0 47 </head>
michael@0 48 <body>
michael@0 49
michael@0 50 <!-- default (start) -->
michael@0 51 <div class="flexbox">
michael@0 52 <div class="a"/>
michael@0 53 </div>
michael@0 54 <div class="flexbox">
michael@0 55 <div class="a"/><div class="b"></div>
michael@0 56 </div>
michael@0 57 <div class="flexbox">
michael@0 58 <div class="a"/><div class="b"/><div class="c"/>
michael@0 59 </div>
michael@0 60
michael@0 61 <!-- flex-start -->
michael@0 62 <div class="flexbox" style="justify-content: flex-start">
michael@0 63 <div class="a"/>
michael@0 64 </div>
michael@0 65 <div class="flexbox" style="justify-content: flex-start">
michael@0 66 <div class="a"/><div class="b"/>
michael@0 67 </div>
michael@0 68 <div class="flexbox" style="justify-content: flex-start">
michael@0 69 <div class="a"/><div class="b"/><div class="c"/>
michael@0 70 </div>
michael@0 71
michael@0 72 <!-- flex-end -->
michael@0 73 <div class="flexbox" style="justify-content: flex-end">
michael@0 74 <div class="a"/>
michael@0 75 </div>
michael@0 76 <div class="flexbox" style="justify-content: flex-end">
michael@0 77 <div class="a"/><div class="b"/>
michael@0 78 </div>
michael@0 79 <div class="flexbox" style="justify-content: flex-end">
michael@0 80 <div class="a"/><div class="b"/><div class="c"/>
michael@0 81 </div>
michael@0 82
michael@0 83 <!-- center -->
michael@0 84 <div class="flexbox" style="justify-content: center">
michael@0 85 <div class="a"/>
michael@0 86 </div>
michael@0 87 <div class="flexbox" style="justify-content: center">
michael@0 88 <div class="a"/><div class="b"/>
michael@0 89 </div>
michael@0 90 <div class="flexbox" style="justify-content: center">
michael@0 91 <div class="a"/><div class="b"/><div class="c"/>
michael@0 92 </div>
michael@0 93
michael@0 94 <!-- space-between -->
michael@0 95 <div class="flexbox" style="justify-content: space-between">
michael@0 96 <div class="a"/>
michael@0 97 </div>
michael@0 98 <div class="flexbox" style="justify-content: space-between">
michael@0 99 <div class="a"/><div class="b"/>
michael@0 100 </div>
michael@0 101 <div class="flexbox" style="justify-content: space-between">
michael@0 102 <div class="a"/><div class="b"/><div class="c"/>
michael@0 103 </div>
michael@0 104
michael@0 105 <!-- space-around -->
michael@0 106 <div class="flexbox" style="justify-content: space-around">
michael@0 107 <div class="a"/>
michael@0 108 </div>
michael@0 109 <div class="flexbox" style="justify-content: space-around">
michael@0 110 <div class="a"/><div class="b"/>
michael@0 111 </div>
michael@0 112 <div class="flexbox" style="justify-content: space-around">
michael@0 113 <div class="a"/><div class="b"/><div class="c"/>
michael@0 114 </div>
michael@0 115
michael@0 116 </body>
michael@0 117 </html>

mercurial