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

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

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

mercurial