layout/reftests/w3c-css/submitted/flexbox/flexbox-margin-auto-horiz-2-ref.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-margin-auto-horiz-2-ref.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,61 @@
     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 variety of 'display: flex' examples
    1.10 +     with margin-top and/or margin-bottom set to 'auto' on flex items. -->
    1.11 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.12 +  <head>
    1.13 +    <title>CSS Reftest Reference</title>
    1.14 +    <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
    1.15 +    <style>
    1.16 +      div.flexbox {
    1.17 +        border: 2px dotted black;
    1.18 +        display: flex;
    1.19 +        margin-bottom: 2px;
    1.20 +        width: 100px;
    1.21 +      }
    1.22 +      div.fixedSize {
    1.23 +        width:  20px;
    1.24 +        height: 20px;
    1.25 +      }
    1.26 +      div.gray        { background: gray;  }
    1.27 +      div.green       { background: green; }
    1.28 +      div.pink        { background: pink;  }
    1.29 +      div.blue        { background: blue;  }
    1.30 +    </style>
    1.31 +  </head>
    1.32 +  <body>
    1.33 +
    1.34 +    <!-- fixed-height flexbox, with items that have auto margins -->
    1.35 +    <div class="flexbox" style="height: 100px">
    1.36 +      <div class="fixedSize green" style="margin-top: 80px"/>
    1.37 +      <div class="fixedSize pink"/>
    1.38 +      <div class="fixedSize blue"  style="margin-top: 40px"/>
    1.39 +    </div>
    1.40 +    <!-- fixed-height flexbox, with items that have auto & fixed margins -->
    1.41 +    <div class="flexbox" style="height: 100px">
    1.42 +      <div class="fixedSize green" style="margin-top: 70px"/>
    1.43 +      <div class="fixedSize pink"  style="margin-top: 10px"/>
    1.44 +    </div>
    1.45 +
    1.46 +    <!-- height-shrinkwrapping flexbox, sized by item w/ fixed height & margins,
    1.47 +         with other items that have auto margins -->
    1.48 +    <div class="flexbox" style="height: 50px">
    1.49 +      <div class="fixedSize green" style="margin-top: 30px"/>
    1.50 +      <div class="fixedSize pink"/>
    1.51 +      <div class="fixedSize blue"  style="margin-top: 15px"/>
    1.52 +      <div class="gray" style="width: 10px; height: 30px; margin-top: 10px"/>
    1.53 +    </div>
    1.54 +
    1.55 +    <!-- height-shrinkwrapping flexbox, sized by item w/ fixed height & margins,
    1.56 +         with other items that have auto & fixed margins -->
    1.57 +    <div class="flexbox" style="height: 50px">
    1.58 +      <div class="fixedSize green" style="margin-top: 20px"/>
    1.59 +      <div class="fixedSize pink"  style="margin-top: 10px"/>
    1.60 +      <div class="gray" style="width: 10px; height: 30px; margin-top: 10px"/>
    1.61 +    </div>
    1.62 +
    1.63 +  </body>
    1.64 +</html>

mercurial