tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

flexbox-align-self-vert-rtl-001.xhtml (2967B)


      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/css-flexbox-1/#align-items-property"/>
     14    <link rel="match" href="flexbox-align-self-vert-rtl-001-ref.xhtml"/>
     15    <meta name="fuzzy" content="maxDifference=0-120;totalPixels=0-101"/>
     16    <style>
     17      .flexbox {
     18        border: 1px solid blue;
     19        width: 200px;
     20        display: flex;
     21        flex-direction: column;
     22        direction: rtl;
     23        font-family: sans-serif;
     24        font-size: 10px;
     25 
     26        /* Any children whose align-self is 'auto' (or unspecified, or
     27           initial) will end up taking this value from us: */
     28        align-items: center;
     29 
     30        /* Any children whose align-self is 'inherit' will end up
     31           inheriting this value from us: */
     32        align-self: flex-end;
     33      }
     34 
     35      .big {
     36        font-size: 20px;
     37        width: 50px;
     38      }
     39 
     40      /* Classes for each of the various align-self values */
     41      .flex-start {
     42        background: lime;
     43        align-self: flex-start;
     44      }
     45      .flex-end {
     46        background: orange;
     47        align-self: flex-end;
     48      }
     49      .center {
     50        background: lightblue;
     51        align-self: center;
     52      }
     53      .baseline {
     54        background: teal;
     55        align-self: baseline;
     56      }
     57      .stretch {
     58        background: pink;
     59        align-self: stretch;
     60      }
     61      .auto {
     62        background: yellow;
     63        align-self: auto;
     64      }
     65      .unspecified {
     66        background: lightgreen;
     67      }
     68      .initial {
     69        background: aqua;
     70        align-self: initial;
     71      }
     72      .inherit {
     73        background: violet;
     74        align-self: inherit;
     75      }
     76   </style>
     77  </head>
     78  <body>
     79    <div class="flexbox">
     80      <div class="flex-start">start</div>
     81      <div class="flex-start big">a b c d e f</div>
     82      <div class="flex-end">end</div>
     83      <div class="flex-end big">a b c d e f</div>
     84      <div class="center">center</div>
     85      <div class="center big">a b c d e f</div>
     86      <div class="baseline">base</div>
     87      <div class="baseline big">abc</div>
     88      <div class="stretch">stretch</div>
     89      <div class="stretch big">a b c d e f</div>
     90      <div class="auto">auto</div>
     91      <div class="unspecified">unspec</div>
     92      <div class="initial">initial</div>
     93      <div class="inherit">inherit</div>
     94    </div>
     95  </body>
     96 </html>