tor-browser

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

available-size-004.html (1832B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>Testing Available Space in Orthogonal Flows / height / no scroller</title>
      4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
      5 <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto">
      6 <link rel="match" href="reference/available-size-002-ref.html">
      7 <meta name="assert" content="When an orthogonal flow's parent doesn't have a definite block size but an ancestor that is **not** a scroller does have a fixed height, do not use that.">
      8 <style>
      9 body > div {
     10  font-family: monospace; /* to be able to reliably measure things in ch*/
     11  font-size: 20px;
     12  height: 8ch;
     13  width: 300px; /* Shrinkwrapping this div is not what we're interested in testing here, so give it a width. See nested-orthogonal-001.html for that. */
     14  color: transparent;
     15  position: relative; /* to act as a container of #green */
     16 }
     17 
     18 div > div { padding-bottom: 2ch; } /* so that the content height of the parent and of the fixed size ancestor are different */
     19 div > div > div { writing-mode: vertical-rl; }
     20 
     21 span {
     22  background: white;
     23  display: inline-block; /* This should not change it's size or position, but makes the size of the background predictable*/
     24 }
     25 
     26 #green { /* Not necessary when when comparing to the reference, but makes human judgement easier */
     27  position: absolute;
     28  background: green;
     29  left: 0;
     30  writing-mode: vertical-rl;
     31  z-index: -1;
     32 }
     33 </style>
     34 
     35 <p>Test passes if there is a <strong>green rectangle</strong> below and <strong>no red</strong>.
     36 
     37 <div>
     38  <aside id="green">0</aside>
     39  <div><div>0 0 0 0 <span>0</span> 0 0 0</div></div> <!-- If this div take its height from
     40  the height of its fixed height non scrollable ancestor (which is should not),
     41  it should wrap just right for the white 0 to overlap with the green one. -->
     42 </div>