tor-browser

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

grid-self-baseline-vertical-lr-004.html (2286B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: baseline context and self alignment (vertical-lr)</title>
      4 <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-grid/#alignment">
      6 <link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-align-self">
      7 <link rel="help" href="https://drafts.csswg.org/css-align-3/#align-by-baseline">
      8 <link rel="help" href="https://drafts.csswg.org/css-align-3/#align-items-property">
      9 <link rel="help" href="https://drafts.csswg.org/css-align-3/#align-self-property">
     10 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=412410">
     11 <link rel="match" href="grid-self-baseline-vertical-lr-004-ref.html">
     12 <link rel="stylesheet" href="/fonts/ahem.css">
     13 <link rel="stylesheet" href="/css/support/alignment.css">
     14 <link rel="stylesheet" href="/css/support/grid.css">
     15 <meta name="assert" content="Test that all items share 'first-row' Baseline Context and no item shares any column-like Baseline Context. Orthogonal items don't participate in baseline alignment in the row-like Baseline Context; since no item shares column-like Baseline Context, neither 'aling-self' or 'justify-self' apply." />
     16 
     17 <style>
     18 body { margin: 0; }
     19 .block {
     20   background: grey;
     21   float: left;
     22   margin: 5px;
     23   text-orientation: sideways;
     24   width: 350px;
     25   height: 100px;
     26   font-family: Ahem;
     27   line-height: 1;
     28 }
     29 .block > :nth-child(1) { font-size:24px; }
     30 .block > :nth-child(2) { font-size:32px; }
     31 .block > :nth-child(3) { font-size:48px; }
     32 .block > :nth-child(4) { font-size:64px; }
     33 .item {
     34   border-width: 2px 5px 3px 4px;
     35   border-style: solid;
     36   padding: 6px 3px 7px 8px;
     37   margin: 10px 6px 4px 12px;
     38 }
     39 .extraTopPadding { padding-top: 30px; }
     40 .row { grid-auto-flow: column; }
     41 </style>
     42 
     43 <p>1x4 with orthogonal items.</p>
     44 <div class="block grid column verticalLR contentStart itemsBaseline">
     45    <div class="item">É</div>
     46    <div class="item">É</div>
     47    <div class="item">É</div>
     48    <div class="item">É</div>
     49 </div>
     50 <div class="block grid column verticalLR contentStart itemsBaseline">
     51    <div class="item extraTopPadding">É</div>
     52    <div class="item">É</div>
     53    <div class="item">É</div>
     54    <div class="item">É</div>
     55 </div>