layout/reftests/w3c-css/submitted/flexbox/flexbox-mbp-horiz-2b.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-mbp-horiz-2b.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,81 @@
     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 margin/border/padding on flex items. (NOTE: This renders
    1.10 +     the same as the "-2a" variant, which lacks padding, because we've
    1.11 +     just replaced some of the "-2a" variant's content-box area with
    1.12 +     padding-box area in this test.) -->
    1.13 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.14 +  <head>
    1.15 +    <title>CSS Test: Testing margins, borders, and padding on flex items in a horizontal flex container</title>
    1.16 +    <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
    1.17 +    <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#layout-algorithm"/>
    1.18 +    <link rel="match" href="flexbox-mbp-horiz-2-ref.xhtml"/>
    1.19 +    <style>
    1.20 +      div { height: 100px; border: 0; }
    1.21 +      div.flexbox {
    1.22 +        width: 200px;
    1.23 +        font-size: 10px;
    1.24 +        display: flex;
    1.25 +      }
    1.26 +      div.a {
    1.27 +        flex: 1 0 9px;
    1.28 +        background: lightgreen;
    1.29 +        margin-left: 1px;
    1.30 +        margin-right: 3px;
    1.31 +        border-style: dotted;
    1.32 +        border-left-width: 2px;
    1.33 +        border-right-width: 4px;
    1.34 +        padding-left: 5px;
    1.35 +        padding-right: 6px;
    1.36 +      }
    1.37 +      div.b {
    1.38 +        flex: 2 0 1px;
    1.39 +        background: yellow;
    1.40 +        margin-left: 2px;
    1.41 +        margin-right: 4px;
    1.42 +        border-style: dashed;
    1.43 +        border-left-width: 7px;
    1.44 +        border-right-width: 3px;
    1.45 +        padding-left: 1px;
    1.46 +        padding-right: 2px;
    1.47 +      }
    1.48 +      div.c {
    1.49 +        flex: 3 0 40px;
    1.50 +        background: orange;
    1.51 +      }
    1.52 +      div.flexNone {
    1.53 +        flex: none;
    1.54 +        background: pink;
    1.55 +      }
    1.56 +      div.flexBasis {
    1.57 +        flex: 0 0 20px;
    1.58 +        background: gray;
    1.59 +      }
    1.60 +      div.spacer {
    1.61 +        display: inline-block;
    1.62 +        width: 15px;
    1.63 +        height: 15px;
    1.64 +        background: purple;
    1.65 +      }
    1.66 +    </style>
    1.67 +  </head>
    1.68 +  <body>
    1.69 +    <div class="flexbox"><div class="a"></div><div class="b"/></div>
    1.70 +    <div class="flexbox"><div class="a"/><div class="c"/></div>
    1.71 +    <div class="flexbox"><div class="a"/>
    1.72 +      <div class="flexNone"><div class="spacer"/></div>
    1.73 +    </div>
    1.74 +    <div class="flexbox"><div class="b"/><div class="c"/></div>
    1.75 +    <div class="flexbox"><div class="b"/>
    1.76 +      <div class="flexNone"><div class="spacer"/><div class="spacer"/></div>
    1.77 +    </div>
    1.78 +
    1.79 +    <div class="flexbox">
    1.80 +      <div class="a"/><div class="b"/><div class="flexBasis"/><div class="c"/>
    1.81 +    </div>
    1.82 +  </body>
    1.83 +</html>
    1.84 +

mercurial