1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-block-vert-1.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,66 @@ 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 blocks as flex items in a vertical flex container, with 1.10 + various "flex" values and various combinations of the items. --> 1.11 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.12 + <head> 1.13 + <title>CSS Test: Testing flexbox layout algorithm property on block flex items in a vertical flex container</title> 1.14 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 1.15 + <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#layout-algorithm"/> 1.16 + <link rel="match" href="flexbox-basic-block-vert-1-ref.xhtml"/> 1.17 + <style> 1.18 + div { width: 50px; } 1.19 + div.flexbox { 1.20 + float: left; 1.21 + border: 1px dashed blue; 1.22 + height: 200px; 1.23 + font-size: 10px; 1.24 + display: flex; 1.25 + flex-direction: column; 1.26 + } 1.27 + div.a { 1.28 + flex: 1 0 30px; 1.29 + background: lightgreen; 1.30 + } 1.31 + div.b { 1.32 + flex: 2 0 20px; 1.33 + background: yellow; 1.34 + } 1.35 + div.c { 1.36 + flex: 3 0 40px; 1.37 + background: orange; 1.38 + } 1.39 + div.flexNone { 1.40 + flex: none; 1.41 + background: pink; 1.42 + } 1.43 + div.flexBasis { 1.44 + flex: 0 0 20px; 1.45 + background: gray; 1.46 + } 1.47 + div.spacer { 1.48 + width: 15px; 1.49 + height: 15px; 1.50 + background: purple; 1.51 + } 1.52 + </style> 1.53 + </head> 1.54 + <body> 1.55 + <div class="flexbox"><div class="a"></div><div class="b"/></div> 1.56 + <div class="flexbox"><div class="a"/><div class="c"/></div> 1.57 + <div class="flexbox"><div class="a"/> 1.58 + <div class="flexNone"><div class="spacer"/></div> 1.59 + </div> 1.60 + <div class="flexbox"><div class="b"/><div class="c"/></div> 1.61 + <div class="flexbox"><div class="b"/> 1.62 + <div class="flexNone"><div class="spacer"/><div class="spacer"/></div> 1.63 + </div> 1.64 + 1.65 + <div class="flexbox"> 1.66 + <div class="a"/><div class="b"/><div class="flexBasis"/><div class="c"/> 1.67 + </div> 1.68 + </body> 1.69 +</html>