tor-browser

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

grid-abspos-items-004-ref.html (2106B)


      1 <!DOCTYPE HTML>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <html><head>
      7  <meta charset="utf-8">
      8  <title>CSS Grid Test: abs pos areas</title>
      9  <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1204585">
     10  <style type="text/css">
     11 html,body {
     12    color:black; background-color:white; font-size:16px; padding:0; margin:0;
     13 }
     14 separator { clear:both; display:block; height:6px; }
     15 
     16 .grid {
     17  display: block;
     18  float: left;
     19  position: relative;
     20  border-style: solid;
     21  border-width: 1px 3px 5px 7px;
     22  padding: 11px 13px 15px 17px;
     23  border-block-start-color: blue;
     24  border-inline-start-color: lime;
     25  grid-template: 11px 31px 13px / 13px 23px 7px;
     26  margin-right: 4px;
     27  inline-size: 55px;
     28  block-size: 43px;
     29 }
     30 
     31 abs1,abs2 {
     32  position: absolute;
     33  top:0;left:0;bottom:0;right:0;
     34  background: grey;
     35  margin:11px 13px 15px 17px;
     36 }
     37 
     38 abs2 { background:white; }
     39 .hl abs2  { top:13px;left:11px;  height:23px; width:31px; }
     40 .hr abs2  { top:13px;right:11px; height:23px; width:31px;  }
     41 .vl abs2  { top:11px;left:13px;  height:31px; width:23px;  }
     42 .vr abs2  { top:11px;right:13px; height:31px; width:23px;  }
     43 .vlr abs2 { bottom:11px;left:13px; height:31px; width:23px;  }
     44 .vrl abs2 { top:11px;right:13px; height:31px; width:23px;  }
     45 
     46 .hl { writing-mode: horizontal-tb; direction:ltr; }
     47 .hr { writing-mode: horizontal-tb; direction:rtl; }
     48 .vl { writing-mode: vertical-lr; }
     49 .vr { writing-mode: vertical-rl; }
     50 .vlr { writing-mode: vertical-lr; direction:rtl; }
     51 .vrl { writing-mode: vertical-rl; direction:ltr; }
     52 
     53 </style>
     54 </head>
     55 <body>
     56 
     57 <script>
     58 var wm = [ "hl", "hr", "vl", "vr", "vlr", "vrl" ];
     59 for (var i = 0; i < wm.length; ++i) {
     60  for (var j = 0; j < wm.length; ++j) {
     61    var div = document.createElement("div");
     62    div.className = "grid " + wm[i];
     63    div.appendChild(document.createElement("abs1"));
     64    div.appendChild(document.createElement("abs2"));
     65    document.body.appendChild(div)
     66  }
     67  document.body.appendChild(document.createElement("separator"));
     68 }
     69 </script>
     70 
     71 
     72 </body>
     73 </html>