tor-browser

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

grid-column-axis-self-baseline-synthesized-003.html (3311B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: Self-Baseline alignment along column-axis on fixed sized grids and synthesized baselines</title>
      4 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-grid-1/#alignment">
      6 <link rel="help" href="https://drafts.csswg.org/css-grid-1/#column-align">
      7 <link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-align-items">
      8 <link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-alignment">
      9 <link rel="help" href="https://drafts.csswg.org/css-align-3/#valdef-justify-self-baseline">
     10 <link rel="help" href="https://drafts.csswg.org/css-align/#synthesize-baseline">
     11 <link rel="stylesheet" href="/css/support/grid.css">
     12 <link rel="stylesheet" href="../../support/alignment.css">
     13 <meta name="assert" content="Empty grid items with relative size should use their border-box 'under' edge as synthesized baseline.">
     14 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     15 <style>
     16 .grid {
     17  position: relative;
     18  text-orientation: sideways;
     19  grid: 200px 100px / 100px 200px;
     20  font-family: Ahem;
     21  line-height: 1;
     22 }
     23 .bigFont  { font-size: 50px; }
     24 .height25 { height: 25px; }
     25 .height75 { height: 75px; }
     26 .width25  { width: 25px; }
     27 .width75  { width: 75px; }
     28 .width300 { width: 300px; }
     29 
     30 .paddingLeft { padding-left: 20px; }
     31 .paddingRight { padding-right: 20px; }
     32 
     33 .relativeHeight { height: 50%; }
     34 .relativeWidth  { width: 50%; }
     35 
     36 </style>
     37 <script src="/resources/testharness.js"></script>
     38 <script src="/resources/testharnessreport.js"></script>
     39 <script src="/resources/check-layout-th.js"></script>
     40 <script type="text/javascript">
     41  setup({ explicit_done: true });
     42 </script>
     43 <body onload="document.fonts.ready.then(() => { checkLayout('.grid'); })">
     44 
     45 <pre>Horizontal grid and item with relative height</pre>
     46 
     47 <div class="grid width300 alignItemsBaseline">
     48  <div class="firstRowFirstColumn relativeHeight"  data-offset-x="0"   data-offset-y="0"  data-expected-width="100" data-expected-height="100"></div>
     49  <div class="firstRowSecondColumn bigFont"        data-offset-x="100" data-offset-y="60" data-expected-width="200" data-expected-height="100">É É ÉÉ</div>
     50  <div class="autoRowAutoColumnSpanning2 height25"></div>
     51 </div>
     52 
     53 <pre>VerticalLR grid and item with relative width</pre>
     54 
     55 <div class="grid alignItemsBaseline verticalLR">
     56  <div class="firstRowFirstColumn relativeWidth"         data-offset-x="30" data-offset-y="0"   data-expected-width="100" data-expected-height="100"></div>
     57  <div class="firstRowSecondColumn bigFont paddingLeft"  data-offset-x="0"  data-offset-y="100" data-expected-width="120" data-expected-height="200">É É ÉÉ</div>
     58  <div class="autoRowAutoColumnSpanning2 width25"></div>
     59 </div>
     60 
     61 <pre>VerticalRL grid and item with rlative width</pre>
     62 
     63 <div class="grid alignItemsBaseline verticalRL">
     64  <div class="firstRowFirstColumn relativeWidth"          data-offset-x="200" data-offset-y="0"   data-expected-width="100" data-expected-height="100"></div>
     65  <div class="firstRowSecondColumn bigFont paddingRight"  data-offset-x="140" data-offset-y="100" data-expected-width="120" data-expected-height="200">É É ÉÉ</div>
     66  <div class="autoRowAutoColumnSpanning2 width25"></div>
     67 </div>
     68 
     69 </body>