tor-browser

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

flexbox_justifycontent-rtl-002.html (3069B)


      1 <!DOCTYPE html>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <html>
      7 <head>
      8  <title>CSS Test: Static position of abspos children in a RTL column flex container, with various "justify-content" values</title>
      9  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
     10  <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
     11  <link rel="help" href="https://drafts.csswg.org/css-flexbox/#abspos-items">
     12  <meta charset="utf-8">
     13  <style>
     14    .container {
     15      display: flex;
     16      position: relative;
     17      flex-flow: column;
     18      direction: rtl;
     19      padding: 1px 2px;
     20      border: 1px solid black;
     21      background: yellow;
     22      margin-bottom: 5px;
     23      margin-right: 5px;
     24      float: left; /* For testing in "rows" of containers */
     25    }
     26    br { clear: both }
     27 
     28    .big > .container {
     29      height: 10px;
     30      width: 16px;
     31    }
     32    .small > .container {
     33      height: 2px;
     34      width: 4px;
     35    }
     36 
     37    .container > * {
     38      background: teal;
     39      height: 6px;
     40      width: 8px;
     41    }
     42  </style>
     43  <script src="/resources/testharness.js"></script>
     44  <script src="/resources/testharnessreport.js"></script>
     45  <script src="/resources/check-layout-th.js"></script>
     46 </head>
     47 <body onload="checkLayout('.container > div')">
     48  <div class="big">
     49    <!-- The various justify-content values, from
     50         https://www.w3.org/TR/css-align-3/#propdef-align-content -->
     51    <!-- normal -->
     52    <div class="container" style="justify-content: normal"><div data-offset-x="10" data-offset-y="1"></div></div>
     53    <br>
     54    <!-- <content-distribution> -->
     55    <div class="container" style="justify-content: space-between"><div data-offset-x="10" data-offset-y="1"></div></div>
     56    <div class="container" style="justify-content: space-around"><div data-offset-x="10" data-offset-y="3"></div></div>
     57    <div class="container" style="justify-content: space-evenly"><div data-offset-x="10" data-offset-y="3"></div></div>
     58    <div class="container" style="justify-content: stretch"><div data-offset-x="10" data-offset-y="1"></div></div>
     59    <br>
     60    <!-- <content-position>, part 1 -->
     61    <div class="container" style="justify-content: center"><div data-offset-x="10" data-offset-y="3"></div></div>
     62    <div class="container" style="justify-content: start"><div data-offset-x="10" data-offset-y="1"></div></div>
     63    <div class="container" style="justify-content: end"><div data-offset-x="10" data-offset-y="5"></div></div>
     64    <br>
     65    <!-- <content-position>, part 2 -->
     66    <div class="container" style="justify-content: flex-start"><div data-offset-x="10" data-offset-y="1"></div></div>
     67    <div class="container" style="justify-content: flex-end"><div data-offset-x="10" data-offset-y="5"></div></div>
     68    <div class="container" style="justify-content: left"><div data-offset-x="10" data-offset-y="1"></div></div>
     69    <div class="container" style="justify-content: right"><div data-offset-x="10" data-offset-y="1"></div></div>
     70    <br>
     71  </div>
     72 </body>
     73 </html>