layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-block-horiz-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-block-horiz-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,65 @@
     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 horizontal 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 horizontal 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-horiz-1-ref.xhtml"/>
    1.17 +    <style>
    1.18 +      div { height: 100px; }
    1.19 +      div.flexbox {
    1.20 +        border: 1px dashed blue;
    1.21 +        width: 200px;
    1.22 +        font-size: 10px;
    1.23 +        display: flex;
    1.24 +      }
    1.25 +      div.a {
    1.26 +        flex: 1 0 30px;
    1.27 +        background: lightgreen;
    1.28 +      }
    1.29 +      div.b {
    1.30 +        flex: 2 0 20px;
    1.31 +        background: yellow;
    1.32 +      }
    1.33 +      div.c {
    1.34 +        flex: 3 0 40px;
    1.35 +        background: orange;
    1.36 +      }
    1.37 +      div.flexNone {
    1.38 +        flex: none;
    1.39 +        background: pink;
    1.40 +      }
    1.41 +      div.flexBasis {
    1.42 +        flex: 0 0 20px;
    1.43 +        background: gray;
    1.44 +      }
    1.45 +      div.spacer {
    1.46 +        display: inline-block;
    1.47 +        width: 15px;
    1.48 +        height: 15px;
    1.49 +        background: purple;
    1.50 +      }
    1.51 +    </style>
    1.52 +  </head>
    1.53 +  <body>
    1.54 +    <div class="flexbox"><div class="a"></div><div class="b"/></div>
    1.55 +    <div class="flexbox"><div class="a"/><div class="c"/></div>
    1.56 +    <div class="flexbox"><div class="a"/>
    1.57 +      <div class="flexNone"><div class="spacer"/></div>
    1.58 +    </div>
    1.59 +    <div class="flexbox"><div class="b"/><div class="c"/></div>
    1.60 +    <div class="flexbox"><div class="b"/>
    1.61 +      <div class="flexNone"><div class="spacer"/><div class="spacer"/></div>
    1.62 +    </div>
    1.63 +
    1.64 +    <div class="flexbox">
    1.65 +      <div class="a"/><div class="b"/><div class="flexBasis"/><div class="c"/>
    1.66 +    </div>
    1.67 +  </body>
    1.68 +</html>

mercurial