layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-horiz-5-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-align-self-horiz-5-ref.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,98 @@
     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 +<!-- Reference case for align-items / align-self behavior with auto
    1.10 +     margins in play. This reference case uses fixed margin-top values
    1.11 +     in place of the testcase's auto margins. -->
    1.12 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.13 +  <head>
    1.14 +    <title>CSS Reftest Reference</title>
    1.15 +    <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
    1.16 +    <style>
    1.17 +      .flexbox {
    1.18 +        border: 1px dashed blue;
    1.19 +        height: 140px;
    1.20 +        width: 400px;
    1.21 +        display: flex;
    1.22 +        font-size: 10px;
    1.23 +        line-height: 10px;
    1.24 +        margin-bottom: 10px;
    1.25 +      }
    1.26 +
    1.27 +      .kidsAutoTop > div      { margin-top: 130px;   }
    1.28 +      .kidsAutoTop > div.big  { margin-top: 60px;   }
    1.29 +      .kidsAutoBoth > div     { margin-top: 65px; }
    1.30 +      .kidsAutoBoth > div.big { margin-top: 30px; }
    1.31 +
    1.32 +      .flexbox > div {
    1.33 +        width: 40px;
    1.34 +        height: 10px;
    1.35 +      }
    1.36 +
    1.37 +      .flexbox > div.big {
    1.38 +        height: 80px;
    1.39 +        font-size: 20px;
    1.40 +        line-height: 20px;
    1.41 +      }
    1.42 +
    1.43 +      /* Classes for each of the various align-self values */
    1.44 +      .flex-start {
    1.45 +        background: lime;
    1.46 +      }
    1.47 +      .flex-end {
    1.48 +        background: orange;
    1.49 +      }
    1.50 +      .center {
    1.51 +        background: lightblue;
    1.52 +      }
    1.53 +      .baseline {
    1.54 +        background: teal;
    1.55 +      }
    1.56 +      .stretch {
    1.57 +        background: pink;
    1.58 +      }
    1.59 +   </style>
    1.60 +  </head>
    1.61 +  <body>
    1.62 +    <div class="flexbox kidsAutoTop">
    1.63 +      <div class="flex-start">start</div>
    1.64 +      <div class="flex-start big">a b c d e f</div>
    1.65 +      <div class="flex-end">end</div>
    1.66 +      <div class="flex-end big">a b c d e f</div>
    1.67 +      <div class="center">center</div>
    1.68 +      <div class="center big">a b c d e f</div>
    1.69 +      <div class="baseline">base</div>
    1.70 +      <div class="baseline big">a b c d e f</div>
    1.71 +      <div class="stretch">stretch</div>
    1.72 +      <div class="stretch big">a b c d e f</div>
    1.73 +    </div>
    1.74 +
    1.75 +    <div class="flexbox kidsAutoBottom">
    1.76 +      <div class="flex-start">start</div>
    1.77 +      <div class="flex-start big">a b c d e f</div>
    1.78 +      <div class="flex-end">end</div>
    1.79 +      <div class="flex-end big">a b c d e f</div>
    1.80 +      <div class="center">center</div>
    1.81 +      <div class="center big">a b c d e f</div>
    1.82 +      <div class="baseline">base</div>
    1.83 +      <div class="baseline big">a b c d e f</div>
    1.84 +      <div class="stretch">stretch</div>
    1.85 +      <div class="stretch big">a b c d e f</div>
    1.86 +    </div>
    1.87 +
    1.88 +    <div class="flexbox kidsAutoBoth">
    1.89 +      <div class="flex-start">start</div>
    1.90 +      <div class="flex-start big">a b c d e f</div>
    1.91 +      <div class="flex-end">end</div>
    1.92 +      <div class="flex-end big">a b c d e f</div>
    1.93 +      <div class="center">center</div>
    1.94 +      <div class="center big">a b c d e f</div>
    1.95 +      <div class="baseline">base</div>
    1.96 +      <div class="baseline big">a b c d e f</div>
    1.97 +      <div class="stretch">stretch</div>
    1.98 +      <div class="stretch big">a b c d e f</div>
    1.99 +    </div>
   1.100 +  </body>
   1.101 +</html>

mercurial