tor-browser

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

floats-005.xht (1642B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3     <head>
      4         <title>CSS Test: Floats, shifting down below all other floated elements</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" />
      7         <link rel="match" href="floats-005-ref.xht" />
      8 
      9         <meta name="flags" content="image" />
     10         <meta name="assert" content="Floated boxes shift down until it fits." />
     11         <style type="text/css">
     12             #parentDiv
     13             {
     14                 background: red url('support/floats-005.png');
     15                 width: 1.25in;
     16             }
     17             div
     18             {
     19                 float: left;
     20             }
     21             div div
     22             {
     23                 background: green;
     24             }
     25             #div1
     26             {
     27                 height: 1in;
     28                 width: 1.2in;
     29             }
     30             #div2
     31             {
     32                 height: 1in;
     33                 width: 0.75in;
     34             }
     35             #div3
     36             {
     37                 height: 0.25in;
     38                 width: 0.2in;
     39             }
     40             #div4
     41             {
     42                 width: 0.5in;
     43                 height: 0.25in;
     44             }
     45         </style>
     46     </head>
     47     <body>
     48         <p>Test passes if there is no red.</p>
     49         <div id="parentDiv">
     50            <div id="div1"></div>
     51            <div id="div2"></div>
     52            <div id="div3"></div>
     53            <div id="div4"></div>
     54         </div>
     55     </body>
     56 </html>