1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-justify-content-vert-3.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,117 @@ 1.4 +<?xml version="1.0" encoding="UTF-8"?> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ 1.8 +--> 1.9 +<!-- Testcase with a series of vertical flex containers testing each possible 1.10 + value of the 'justify-content' property, and with each individual 1.11 + flex item being larger than the flexbox itself (so that there isn't any 1.12 + packing space available). 1.13 + 1.14 + * For 'flex-start'/'space-between', we should overflow on the end 1.15 + (bottom) side. 1.16 + * For 'flex-end', we should overflow on the start (top) side. 1.17 + * For 'center'/'space-around', we should overflow equally on both sides. 1.18 +--> 1.19 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.20 + <head> 1.21 + <title>CSS Test: Testing 'justify-content' in a vertical flex container, and its effects on flex items that overflow</title> 1.22 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 1.23 + <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#justify-content-property"/> 1.24 + <link rel="match" href="flexbox-justify-content-vert-3-ref.xhtml"/> 1.25 + <style> 1.26 + body { margin-top: 100px; } /* So we can see top-overflowed stuff */ 1.27 + div.flexbox { 1.28 + height: 30px; 1.29 + display: flex; 1.30 + flex-direction: column; 1.31 + margin-right: 2px; 1.32 + float: left; 1.33 + } 1.34 + div.a { 1.35 + width: 20px; 1.36 + flex: 0 0 35px; 1.37 + background: lightgreen; 1.38 + } 1.39 + div.b { 1.40 + width: 20px; 1.41 + flex: 0 0 40px; 1.42 + background: pink; 1.43 + } 1.44 + div.c { 1.45 + width: 20px; 1.46 + flex: 0 0 45px; 1.47 + background: orange; 1.48 + } 1.49 + </style> 1.50 + </head> 1.51 + <body> 1.52 + 1.53 + <!-- default (start) --> 1.54 + <div class="flexbox"> 1.55 + <div class="a"/> 1.56 + </div> 1.57 + <div class="flexbox"> 1.58 + <div class="a"/><div class="b"></div> 1.59 + </div> 1.60 + <div class="flexbox"> 1.61 + <div class="a"/><div class="b"/><div class="c"/> 1.62 + </div> 1.63 + 1.64 + <!-- flex-start --> 1.65 + <div class="flexbox" style="justify-content: flex-start"> 1.66 + <div class="a"/> 1.67 + </div> 1.68 + <div class="flexbox" style="justify-content: flex-start"> 1.69 + <div class="a"/><div class="b"/> 1.70 + </div> 1.71 + <div class="flexbox" style="justify-content: flex-start"> 1.72 + <div class="a"/><div class="b"/><div class="c"/> 1.73 + </div> 1.74 + 1.75 + <!-- flex-end --> 1.76 + <div class="flexbox" style="justify-content: flex-end"> 1.77 + <div class="a"/> 1.78 + </div> 1.79 + <div class="flexbox" style="justify-content: flex-end"> 1.80 + <div class="a"/><div class="b"/> 1.81 + </div> 1.82 + <div class="flexbox" style="justify-content: flex-end"> 1.83 + <div class="a"/><div class="b"/><div class="c"/> 1.84 + </div> 1.85 + 1.86 + <!-- center --> 1.87 + <div class="flexbox" style="justify-content: center"> 1.88 + <div class="a"/> 1.89 + </div> 1.90 + <div class="flexbox" style="justify-content: center"> 1.91 + <div class="a"/><div class="b"/> 1.92 + </div> 1.93 + <div class="flexbox" style="justify-content: center"> 1.94 + <div class="a"/><div class="b"/><div class="c"/> 1.95 + </div> 1.96 + 1.97 + <!-- space-between --> 1.98 + <div class="flexbox" style="justify-content: space-between"> 1.99 + <div class="a"/> 1.100 + </div> 1.101 + <div class="flexbox" style="justify-content: space-between"> 1.102 + <div class="a"/><div class="b"/> 1.103 + </div> 1.104 + <div class="flexbox" style="justify-content: space-between"> 1.105 + <div class="a"/><div class="b"/><div class="c"/> 1.106 + </div> 1.107 + 1.108 + <!-- space-around --> 1.109 + <div class="flexbox" style="justify-content: space-around"> 1.110 + <div class="a"/> 1.111 + </div> 1.112 + <div class="flexbox" style="justify-content: space-around"> 1.113 + <div class="a"/><div class="b"/> 1.114 + </div> 1.115 + <div class="flexbox" style="justify-content: space-around"> 1.116 + <div class="a"/><div class="b"/><div class="c"/> 1.117 + </div> 1.118 + 1.119 + </body> 1.120 +</html>