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

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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      margin/border/padding values on each, and with "direction: rtl" to swap
     9      the horizontal (cross) axis item. -->
    10 <html xmlns="http://www.w3.org/1999/xhtml">
    11   <head>
    12     <title>CSS Test: Testing the behavior of 'align-self' with a vertical flex container, with margin/padding/border on the items and with 'direction: rtl'</title>
    13     <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
    14     <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#align-items-property"/>
    15     <link rel="match" href="flexbox-align-self-vert-rtl-2-ref.xhtml"/>
    16     <style>
    17       .flexbox {
    18         border: 1px dashed blue;
    19         width: 200px;
    20         display: flex;
    21         flex-direction: column;
    22         direction: rtl;
    23         float: left;
    24         font-family: sans-serif;
    25         font-size: 10px;
    26       }
    28       .flexbox > div {
    29         margin:       1px 2px 3px 4px;
    30         border-width: 2px 3px 4px 5px;
    31         padding:      3px 4px 5px 6px;
    33         border-style: dotted;
    34       }
    36       div.big {
    37         font-size: 20px;
    38         width: 50px;
    39       }
    41       /* Classes for each of the various align-self values */
    42       .flex-start {
    43         background: lime;
    44         align-self: flex-start;
    45       }
    46       .flex-end {
    47         background: orange;
    48         align-self: flex-end;
    49       }
    50       .center {
    51         background: lightblue;
    52         align-self: center;
    53       }
    54       .baseline {
    55         background: teal;
    56         align-self: baseline;
    57       }
    58       .stretch {
    59         background: pink;
    60         align-self: stretch;
    61       }
    62    </style>
    63   </head>
    64   <body>
    65     <div class="flexbox">
    66       <div class="flex-start">start</div>
    67       <div class="flex-start big">a b c d e f</div>
    68       <div class="flex-end">end</div>
    69       <div class="flex-end big">a b c d e f</div>
    70       <div class="center">center</div>
    71       <div class="center big">a b c d e f</div>
    72     </div>
    73     <div class="flexbox">
    74       <div class="baseline">base</div>
    75       <div class="baseline big">abc</div>
    76       <div class="stretch">stretch</div>
    77       <div class="stretch big">a b c d e f</div>
    78     </div>
    79   </body>
    80 </html>

mercurial