tor-browser

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

grid-abspos-items-003-ref.html (2044B)


      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  border-block-start-color: blue;
     23  border-inline-start-color: lime;
     24  grid-template: 11px 31px 13px / 13px 23px 7px;
     25  margin-right: 4px;
     26  inline-size: 55px;
     27  block-size: 43px;
     28 }
     29 
     30 abs1,abs2 {
     31  position: absolute;
     32  top:0;left:0;bottom:0;right:0;
     33  background: grey;
     34 }
     35 
     36 abs2 { background:white; }
     37 .hl abs2  { top:13px;left:11px;  height:23px; width:31px; }
     38 .hr abs2  { top:13px;right:11px; height:23px; width:31px;  }
     39 .vl abs2  { top:11px;left:13px;  height:31px; width:23px;  }
     40 .vr abs2  { top:11px;right:13px; height:31px; width:23px;  }
     41 .vlr abs2 { bottom:11px;left:13px; height:31px; width:23px;  }
     42 .vrl abs2 { top:11px;right:13px; height:31px; width:23px;  }
     43 
     44 .hl { writing-mode: horizontal-tb; direction:ltr; }
     45 .hr { writing-mode: horizontal-tb; direction:rtl; }
     46 .vl { writing-mode: vertical-lr; }
     47 .vr { writing-mode: vertical-rl; }
     48 .vlr { writing-mode: vertical-lr; direction:rtl; }
     49 .vrl { writing-mode: vertical-rl; direction:ltr; }
     50 
     51 </style>
     52 </head>
     53 <body>
     54 
     55 <script>
     56 var wm = [ "hl", "hr", "vl", "vr", "vlr", "vrl" ];
     57 for (var i = 0; i < wm.length; ++i) {
     58  for (var j = 0; j < wm.length; ++j) {
     59    var div = document.createElement("div");
     60    div.className = "grid " + wm[i];
     61    div.appendChild(document.createElement("abs1"));
     62    div.appendChild(document.createElement("abs2"));
     63    document.body.appendChild(div)
     64  }
     65  document.body.appendChild(document.createElement("separator"));
     66 }
     67 </script>
     68 
     69 
     70 </body>
     71 </html>