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-4.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,128 @@ 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). Also, we've got margin/border/padding on the 1.13 + flex items. 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, with margins/border/padding on flex items</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-4-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: 4px; 1.32 + float: left; 1.33 + } 1.34 + div.a { 1.35 + width: 10px; 1.36 + flex: 0 0 35px; 1.37 + background: lightgreen; 1.38 + border-style: solid; 1.39 + border-color: purple; 1.40 + border-top-width: 4px; 1.41 + border-right-width: 3px; 1.42 + border-bottom-width: 2px; 1.43 + border-left-width: 1px; 1.44 + padding: 2px; 1.45 + } 1.46 + div.b { 1.47 + width: 10px; 1.48 + flex: 0 0 40px; 1.49 + background: pink; 1.50 + padding: 1px 2px 3px 4px; 1.51 + margin: 5px 4px 3px 2px; 1.52 + } 1.53 + div.c { 1.54 + width: 10px; 1.55 + flex: 0 0 45px; 1.56 + background: orange; 1.57 + margin: 3px; 1.58 + border: 2px dashed teal; 1.59 + } 1.60 + </style> 1.61 + </head> 1.62 + <body> 1.63 + 1.64 + <!-- default (start) --> 1.65 + <div class="flexbox"> 1.66 + <div class="a"/> 1.67 + </div> 1.68 + <div class="flexbox"> 1.69 + <div class="a"/><div class="b"></div> 1.70 + </div> 1.71 + <div class="flexbox"> 1.72 + <div class="a"/><div class="b"/><div class="c"/> 1.73 + </div> 1.74 + 1.75 + <!-- flex-start --> 1.76 + <div class="flexbox" style="justify-content: flex-start"> 1.77 + <div class="a"/> 1.78 + </div> 1.79 + <div class="flexbox" style="justify-content: flex-start"> 1.80 + <div class="a"/><div class="b"/> 1.81 + </div> 1.82 + <div class="flexbox" style="justify-content: flex-start"> 1.83 + <div class="a"/><div class="b"/><div class="c"/> 1.84 + </div> 1.85 + 1.86 + <!-- flex-end --> 1.87 + <div class="flexbox" style="justify-content: flex-end"> 1.88 + <div class="a"/> 1.89 + </div> 1.90 + <div class="flexbox" style="justify-content: flex-end"> 1.91 + <div class="a"/><div class="b"/> 1.92 + </div> 1.93 + <div class="flexbox" style="justify-content: flex-end"> 1.94 + <div class="a"/><div class="b"/><div class="c"/> 1.95 + </div> 1.96 + 1.97 + <!-- center --> 1.98 + <div class="flexbox" style="justify-content: center"> 1.99 + <div class="a"/> 1.100 + </div> 1.101 + <div class="flexbox" style="justify-content: center"> 1.102 + <div class="a"/><div class="b"/> 1.103 + </div> 1.104 + <div class="flexbox" style="justify-content: center"> 1.105 + <div class="a"/><div class="b"/><div class="c"/> 1.106 + </div> 1.107 + 1.108 + <!-- space-between --> 1.109 + <div class="flexbox" style="justify-content: space-between"> 1.110 + <div class="a"/> 1.111 + </div> 1.112 + <div class="flexbox" style="justify-content: space-between"> 1.113 + <div class="a"/><div class="b"/> 1.114 + </div> 1.115 + <div class="flexbox" style="justify-content: space-between"> 1.116 + <div class="a"/><div class="b"/><div class="c"/> 1.117 + </div> 1.118 + 1.119 + <!-- space-around --> 1.120 + <div class="flexbox" style="justify-content: space-around"> 1.121 + <div class="a"/> 1.122 + </div> 1.123 + <div class="flexbox" style="justify-content: space-around"> 1.124 + <div class="a"/><div class="b"/> 1.125 + </div> 1.126 + <div class="flexbox" style="justify-content: space-around"> 1.127 + <div class="a"/><div class="b"/><div class="c"/> 1.128 + </div> 1.129 + 1.130 + </body> 1.131 +</html>