tor-browser

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

grid-container-scrollbar-vertical-lr-001.html (2015B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: Grid container with scrollbars</title>
      4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-grid/#grid-model">
      6 <link rel="match" href="grid-container-scrollbar-vertical-lr-001-ref.html">
      7 <meta name="assert" content="This test verifies that scrollbars are properly painted on grid containers, and are shown in the expected position depending on the direction.">
      8 <link href="/css/support/grid.css" rel="stylesheet">
      9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     10 <style>
     11  .grid {
     12    font: 10px/1 Ahem;
     13    margin: 10px;
     14    writing-mode: vertical-lr;
     15  }
     16 
     17  .scrollX {
     18    overflow-x: scroll;
     19  }
     20 
     21  .scrollY {
     22    overflow-y: scroll;
     23  }
     24 
     25  .fixedSize {
     26    width: 200px;
     27    height: 50px;
     28  }
     29 
     30  .grid > div {
     31    background: cyan;
     32  }
     33 </style>
     34 
     35 <p>The test passes if it has the same output as the reference.</p>
     36 
     37 <div style="float: left; width: 350px;">
     38 
     39  <h2>direction: ltr;</h2>
     40 
     41  <div class="grid scrollX">
     42    <div>item</div>
     43  </div>
     44 
     45  <div class="grid scrollY">
     46    <div>item</div>
     47  </div>
     48 
     49  <div class="grid scrollX scrollY">
     50    <div>item</div>
     51  </div>
     52 
     53  <div class="grid fixedSize scrollX">
     54    <div>item</div>
     55  </div>
     56 
     57  <div class="grid fixedSize scrollY">
     58    <div>item</div>
     59  </div>
     60 
     61  <div class="grid fixedSize scrollX scrollY">
     62    <div>item</div>
     63  </div>
     64 
     65 </div>
     66 
     67 <div style="float: left; width: 350px;">
     68 
     69  <h2>direction: rtl;</h2>
     70 
     71  <div class="directionRTL grid scrollX">
     72    <div>item</div>
     73  </div>
     74 
     75  <div class="directionRTL grid scrollY">
     76    <div>item</div>
     77  </div>
     78 
     79  <div class="directionRTL grid scrollX scrollY">
     80    <div>item</div>
     81  </div>
     82 
     83  <div class="directionRTL grid fixedSize scrollX">
     84    <div>item</div>
     85  </div>
     86 
     87  <div class="directionRTL grid fixedSize scrollY">
     88    <div>item</div>
     89  </div>
     90 
     91  <div class="directionRTL grid fixedSize scrollX scrollY">
     92    <div>item</div>
     93  </div>
     94 
     95 </div>