tor-browser

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

top-115.xht (1764B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 
      5  <head>
      6 
      7   <title>CSS Test: position relative - top offset percentage and auto-height containing block</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <link rel="help" title="9.3.2 Box offsets: 'top', 'right', 'bottom', 'left'" href="http://www.w3.org/TR/CSS21/visuren.html#position-props" />
     11   <link rel="help" title="10.5 Content height: the 'height' property" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" />
     12   <link rel="match" href="top-115-ref.xht" />
     13 
     14   <meta content="'top: [percentage]' for a relatively positioned box refers to height of its containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, then the percentage height value computes to 'auto'." name="assert" />
     15 
     16   <style type="text/css"><![CDATA[
     17   div
     18   {
     19   height: 100px;
     20   left: auto;
     21   position: relative;
     22   width: 100px;
     23   }
     24 
     25   #rel-pos-overlapped-red
     26   {
     27   background-color: red;
     28   color: white;
     29   top: 50%;
     30   }
     31 
     32   #rel-pos-overlapping-green
     33   {
     34   background-color: green;
     35   top: -100px;
     36   }
     37   ]]></style>
     38 
     39  </head>
     40 
     41  <body>
     42 
     43   <p>Test passes if there is a filled green square and if there is <strong>no red</strong> in this page, <strong>even at its bottom</strong>.</p>
     44 
     45   <div id="rel-pos-overlapped-red">Test FAILED</div>
     46 
     47   <div id="rel-pos-overlapping-green"></div>
     48 
     49   <p>&nbsp;</p>
     50 
     51   <p>&nbsp;</p>
     52 
     53   <p>&nbsp;</p>
     54 
     55   <p>&nbsp;</p>
     56 
     57   <p>&nbsp;</p>
     58 
     59   <p>&nbsp;</p>
     60 
     61   <p>&nbsp;</p>
     62 
     63   <p>&nbsp;</p>
     64 
     65  </body>
     66 </html>