layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-vert-1-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-vert-1-ref.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,109 @@
     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, using blocks in
    1.10 +     place of flex items and using float and width keywords to emulate the
    1.11 +     align-items / align-self properties. -->
    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 +        width: 200px;
    1.20 +        font-size: 10px;
    1.21 +      }
    1.22 +
    1.23 +      div.big {
    1.24 +        font-size: 20px;
    1.25 +        width: 50px;
    1.26 +      }
    1.27 +
    1.28 +      .flexbox > * {
    1.29 +        clear: both;
    1.30 +      }
    1.31 +
    1.32 +      /* Classes for each of the various align-self values */
    1.33 +      .flex-start {
    1.34 +        background: lime;
    1.35 +        float: left;
    1.36 +      }
    1.37 +      .flex-end {
    1.38 +        background: orange;
    1.39 +        float: right;
    1.40 +      }
    1.41 +      .center {
    1.42 +        background: lightblue;
    1.43 +        margin: auto;
    1.44 +      }
    1.45 +      .baseline {
    1.46 +        background: teal;
    1.47 +        float: left;
    1.48 +      }
    1.49 +      .stretch {
    1.50 +        background: pink;
    1.51 +        width: 100%;
    1.52 +      }
    1.53 +      .auto {
    1.54 +        background: yellow;
    1.55 +        margin: auto;
    1.56 +      }
    1.57 +      .unspecified {
    1.58 +        background: lightgreen;
    1.59 +        margin: auto;
    1.60 +      }
    1.61 +      .initial {
    1.62 +        background: aqua;
    1.63 +        margin: auto;
    1.64 +      }
    1.65 +      .inherit {
    1.66 +        background: violet;
    1.67 +        float: right;
    1.68 +      }
    1.69 +
    1.70 +      <!-- We center shrinkwrapped text by putting it into an inline-block, and
    1.71 +           then wrapping that inline-block in a helper-div that has
    1.72 +           "text-align:center" set. -->
    1.73 +      .centerParent {
    1.74 +        text-align: center;
    1.75 +      }
    1.76 +      .centerParent > * {
    1.77 +        display: inline-block;
    1.78 +        text-align: left; /* Keep parent's centering from tweaking my text */
    1.79 +      }
    1.80 +   </style>
    1.81 +  </head>
    1.82 +  <body>
    1.83 +    <div class="flexbox">
    1.84 +      <div class="flex-start">start</div>
    1.85 +      <div class="flex-start big">a b c d e f</div>
    1.86 +      <div class="flex-end">end</div>
    1.87 +      <div class="flex-end big">a b c d e f</div>
    1.88 +      <div class="centerParent">
    1.89 +        <div class="center">center</div>
    1.90 +      </div>
    1.91 +      <div class="center big">a b c d e f</div>
    1.92 +      <div class="baseline">base</div>
    1.93 +      <div class="baseline big">abc</div>
    1.94 +      <div class="stretch">stretch</div>
    1.95 +      <div class="stretch big">a b c d e f</div>
    1.96 +      <div class="centerParent">
    1.97 +        <div class="auto">auto</div>
    1.98 +      </div>
    1.99 +      <div class="centerParent">
   1.100 +        <div class="unspecified">unspec</div>
   1.101 +      </div>
   1.102 +      <div class="centerParent">
   1.103 +        <div class="initial">initial</div>
   1.104 +      </div>
   1.105 +      <div class="inherit">inherit</div>
   1.106 +      <!-- Since that last div is floated right, the container doesn't include
   1.107 +           its height by default. So we add some invisible hacky text (of the
   1.108 +           same font) to make sure our container is tall enough. -->
   1.109 +      <span style="visibility:hidden">hacky text</span>
   1.110 +    </div>
   1.111 +  </body>
   1.112 +</html>

mercurial