tor-browser

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

align-items-baseline-column-vert-lr-flexbox-item.html (1092B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-rules">
      3 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#cross-alignment">
      4 <link rel="author" href="mailto:sammy.gill@apple.com" title="Sammy Gill">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <script src="/resources/check-layout-th.js"></script>
      8 <style>
      9 #target {
     10  display: flex;
     11  flex-direction: column;
     12  width: 200px;
     13  align-items: baseline;
     14  border: 3px solid black;
     15  font-family: monospace;
     16  font-size: 10px;
     17  line-height: 10px;
     18 }
     19 #target > :nth-child(1) {
     20  background: hotpink;
     21  writing-mode: vertical-lr;
     22  padding-left: 30px;
     23  margin-left: 10px;
     24 }
     25 #target > :nth-child(2) {
     26  background: papayawhip;
     27  writing-mode: vertical-lr;
     28 }
     29 .inner {
     30    display: flex;
     31    border: 5px solid black;
     32    padding: 5px;
     33 }
     34 </style>
     35 <body onload="checkLayout('#target > div')">
     36 <div id="target">
     37  <div class="inner" data-offset-x="21">
     38    <div>two<br>lines</div>
     39  </div>
     40  <div data-offset-x="56">hello</div>
     41 </div>
     42 </body>