layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-vert-rtl-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-align-self-vert-rtl-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,95 @@
     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 for align-items / align-self behavior, with all the possible
    1.10 +     values included on different items within a flex container, and with
    1.11 +     "direction: rtl" to swap the horizontal (cross) axis. -->
    1.12 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.13 +  <head>
    1.14 +    <title>CSS Test: Testing the behavior of 'align-self' property values on flex items that are blocks, in a vertical flex container with 'direction: rtl'</title>
    1.15 +    <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
    1.16 +    <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#align-items-property"/>
    1.17 +    <link rel="match" href="flexbox-align-self-vert-rtl-1-ref.xhtml"/>
    1.18 +    <style>
    1.19 +      .flexbox {
    1.20 +        border: 1px dashed blue;
    1.21 +        width: 200px;
    1.22 +        display: flex;
    1.23 +        flex-direction: column;
    1.24 +        direction: rtl;
    1.25 +        font-family: sans-serif;
    1.26 +        font-size: 10px;
    1.27 +
    1.28 +        /* Any children whose align-self is 'auto' (or unspecified, or
    1.29 +           initial) will end up taking this value from us: */
    1.30 +        align-items: center;
    1.31 +
    1.32 +        /* Any children whose align-self is 'inherit' will end up
    1.33 +           inheriting this value from us: */
    1.34 +        align-self: flex-end;
    1.35 +      }
    1.36 +
    1.37 +      .big {
    1.38 +        font-size: 20px;
    1.39 +        width: 50px;
    1.40 +      }
    1.41 +
    1.42 +      /* Classes for each of the various align-self values */
    1.43 +      .flex-start {
    1.44 +        background: lime;
    1.45 +        align-self: flex-start;
    1.46 +      }
    1.47 +      .flex-end {
    1.48 +        background: orange;
    1.49 +        align-self: flex-end;
    1.50 +      }
    1.51 +      .center {
    1.52 +        background: lightblue;
    1.53 +        align-self: center;
    1.54 +      }
    1.55 +      .baseline {
    1.56 +        background: teal;
    1.57 +        align-self: baseline;
    1.58 +      }
    1.59 +      .stretch {
    1.60 +        background: pink;
    1.61 +        align-self: stretch;
    1.62 +      }
    1.63 +      .auto {
    1.64 +        background: yellow;
    1.65 +        align-self: auto;
    1.66 +      }
    1.67 +      .unspecified {
    1.68 +        background: lightgreen;
    1.69 +      }
    1.70 +      .initial {
    1.71 +        background: aqua;
    1.72 +        align-self: initial;
    1.73 +      }
    1.74 +      .inherit {
    1.75 +        background: violet;
    1.76 +        align-self: inherit;
    1.77 +      }
    1.78 +   </style>
    1.79 +  </head>
    1.80 +  <body>
    1.81 +    <div class="flexbox">
    1.82 +      <div class="flex-start">start</div>
    1.83 +      <div class="flex-start big">a b c d e f</div>
    1.84 +      <div class="flex-end">end</div>
    1.85 +      <div class="flex-end big">a b c d e f</div>
    1.86 +      <div class="center">center</div>
    1.87 +      <div class="center big">a b c d e f</div>
    1.88 +      <div class="baseline">base</div>
    1.89 +      <div class="baseline big">abc</div>
    1.90 +      <div class="stretch">stretch</div>
    1.91 +      <div class="stretch big">a b c d e f</div>
    1.92 +      <div class="auto">auto</div>
    1.93 +      <div class="unspecified">unspec</div>
    1.94 +      <div class="initial">initial</div>
    1.95 +      <div class="inherit">inherit</div>
    1.96 +    </div>
    1.97 +  </body>
    1.98 +</html>

mercurial