tor-browser

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

grid-row-axis-self-baseline-synthesized-003.html (3927B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: Self-Baseline alignment along row-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/#row-align">
      7 <link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-justify-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 .container { position: relative; }
     17 .grid {
     18  position: relative;
     19  text-orientation: sideways;
     20  grid: 100px 200px / 200px 100px;
     21  font-family: Ahem;
     22  line-height: 1;
     23 }
     24 .bigFont  { font-size: 50px; }
     25 .height25 { height: 25px; }
     26 .width25 { width: 25px; }
     27 .width200 { width: 200px; }
     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 </style>
     36 <script src="/resources/testharness.js"></script>
     37 <script src="/resources/testharnessreport.js"></script>
     38 <script src="/resources/check-layout-th.js"></script>
     39 <script type="text/javascript">
     40  setup({ explicit_done: true });
     41 </script>
     42 <body onload="document.fonts.ready.then(() => { checkLayout('.grid'); })">
     43 
     44 <pre>Horizontal grid and verticalLR item with relative width</pre>
     45 
     46 <div class="grid width300 justifyItemsBaseline">
     47  <div class="firstRowFirstColumn relativeWidth"                    data-offset-x="30" data-offset-y="0"   data-expected-width="100" data-expected-height="100"></div>
     48  <div class="secondRowFirstColumn bigFont paddingLeft verticalLR"  data-offset-x="0"  data-offset-y="100" data-expected-width="120" data-expected-height="200">É É ÉÉ</div>
     49  <div class="autoRowSpanning2AutoColumn width25"></div>
     50 </div>
     51 
     52 <pre>Horizontal grid and verticalRL item with relative width do not share a baseline context</pre>
     53 
     54 <div class="grid width300 justifyItemsBaseline">
     55  <div class="firstRowFirstColumn relativeWidth"                    data-offset-x="00" data-offset-y="0"   data-expected-width="100" data-expected-height="100"></div>
     56  <div class="secondRowFirstColumn bigFont paddingRight verticalRL" data-offset-x="80"  data-offset-y="100" data-expected-width="120" data-expected-height="200">É É ÉÉ</div>
     57  <div class="autoRowSpanning2AutoColumn width25"></div>
     58 </div>
     59 
     60 <pre>VerticalLR grid and item with relative height</pre>
     61 
     62 <div class="grid justifyItemsBaseline verticalLR">
     63  <div class="firstRowFirstColumn relativeHeight"         data-offset-x="0"   data-offset-y="0"  data-expected-width="100" data-expected-height="100"></div>
     64  <div class="secondRowFirstColumn bigFont horizontalTB"  data-offset-x="100" data-offset-y="60" data-expected-width="200" data-expected-height="100">É É ÉÉ</div>
     65  <div class="autoRowSpanning2AutoColumn height25"></div>
     66 </div>
     67 
     68 <pre>VerticalRL grid and item with relative height</pre>
     69 
     70 <div class="grid justifyItemsBaseline verticalRL">
     71  <div class="firstRowFirstColumn relativeHeight"         data-offset-x="200" data-offset-y="0"  data-expected-width="100" data-expected-height="100"></div>
     72  <div class="secondRowFirstColumn bigFont horizontalTB"  data-offset-x="0"   data-offset-y="60" data-expected-width="200" data-expected-height="100">É É ÉÉ</div>
     73  <div class="autoRowSpanning2AutoColumn height25"></div>
     74 </div>
     75 
     76 
     77 </body>