layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-vert-rtl-1.xhtml

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3      Any copyright is dedicated to the Public Domain.
     4      http://creativecommons.org/publicdomain/zero/1.0/
     5 -->
     6 <!-- Testcase for align-items / align-self behavior, with all the possible
     7      values included on different items within a flex container, and with
     8      "direction: rtl" to swap the horizontal (cross) axis. -->
     9 <html xmlns="http://www.w3.org/1999/xhtml">
    10   <head>
    11     <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>
    12     <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
    13     <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#align-items-property"/>
    14     <link rel="match" href="flexbox-align-self-vert-rtl-1-ref.xhtml"/>
    15     <style>
    16       .flexbox {
    17         border: 1px dashed blue;
    18         width: 200px;
    19         display: flex;
    20         flex-direction: column;
    21         direction: rtl;
    22         font-family: sans-serif;
    23         font-size: 10px;
    25         /* Any children whose align-self is 'auto' (or unspecified, or
    26            initial) will end up taking this value from us: */
    27         align-items: center;
    29         /* Any children whose align-self is 'inherit' will end up
    30            inheriting this value from us: */
    31         align-self: flex-end;
    32       }
    34       .big {
    35         font-size: 20px;
    36         width: 50px;
    37       }
    39       /* Classes for each of the various align-self values */
    40       .flex-start {
    41         background: lime;
    42         align-self: flex-start;
    43       }
    44       .flex-end {
    45         background: orange;
    46         align-self: flex-end;
    47       }
    48       .center {
    49         background: lightblue;
    50         align-self: center;
    51       }
    52       .baseline {
    53         background: teal;
    54         align-self: baseline;
    55       }
    56       .stretch {
    57         background: pink;
    58         align-self: stretch;
    59       }
    60       .auto {
    61         background: yellow;
    62         align-self: auto;
    63       }
    64       .unspecified {
    65         background: lightgreen;
    66       }
    67       .initial {
    68         background: aqua;
    69         align-self: initial;
    70       }
    71       .inherit {
    72         background: violet;
    73         align-self: inherit;
    74       }
    75    </style>
    76   </head>
    77   <body>
    78     <div class="flexbox">
    79       <div class="flex-start">start</div>
    80       <div class="flex-start big">a b c d e f</div>
    81       <div class="flex-end">end</div>
    82       <div class="flex-end big">a b c d e f</div>
    83       <div class="center">center</div>
    84       <div class="center big">a b c d e f</div>
    85       <div class="baseline">base</div>
    86       <div class="baseline big">abc</div>
    87       <div class="stretch">stretch</div>
    88       <div class="stretch big">a b c d e f</div>
    89       <div class="auto">auto</div>
    90       <div class="unspecified">unspec</div>
    91       <div class="initial">initial</div>
    92       <div class="inherit">inherit</div>
    93     </div>
    94   </body>
    95 </html>

mercurial