tor-browser

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

baseline-with-orthogonal-flow-001.html (1567B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <meta charset="UTF-8">
      5  <title>
      6    CSS Test: orthogonal-flow child should be skipped over when determining parent's last-baseline
      7  </title>
      8  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
      9  <link rel="author" title="Mozilla" href="https://www.mozilla.org">
     10  <link rel="help" href="https://drafts.csswg.org/css-align/#baseline-export">
     11  <link rel="match" href="reference/baseline-with-orthogonal-flow-001-ref.html">
     12  <!-- The inline-blocks in this example are using last-baseline alignment, and
     13       css-align-3 sec 9.1 says they should take their last-baseline position:
     14         "from the ...(last) in-flow block-level child in the block container
     15         that contributes a set of ... (last) baselines".
     16 
     17       The orthogonal-flow doesn't contribute a first/last baseline set (not
     18       for its parent's writing-mode at least), so it should not affect the
     19       baseline determination.
     20  -->
     21  <style>
     22    .ib {
     23      display: inline-block;
     24    }
     25    .vert {
     26      writing-mode: vertical-rl;
     27      color: transparent;
     28    }
     29    .overflow {
     30      overflow: hidden;
     31    }
     32  </style>
     33 </head>
     34 <body>
     35  Test passes if the visible characters below are baseline-aligned.
     36  <br><br>
     37 
     38  aaa
     39 
     40  <div class="ib">
     41    bbb
     42    <!-- This shouldn't influence the baseline of our inline block: -->
     43    <div class="vert">vvv</div>
     44  </div>
     45 
     46  <div class="ib">
     47    ccc
     48    <!-- This shouldn't influence the baseline of our inline block: -->
     49    <div class="vert overflow">ooo</div>
     50  </div>
     51 </body>
     52 </html>