tor-browser

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

clear-clearance-calculation-005.xht (1604B)


      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: clear and clearance calculation - margin collapsing</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" />
     11   <link rel="match" href="clear-clearance-calculation-005-ref.xht" />
     12 
     13   <meta content="With clear: none, the first and last paragraphs' margins collapse and the last paragraph's top border edge should be flush with the top of the floating paragraph." name="assert" />
     14 
     15   <style type="text/css"><![CDATA[
     16   body {margin: 8px;}
     17 
     18   #overlapped-red
     19   {
     20   background-color: red;
     21   height: 100px;
     22   left: 8px;
     23   position: absolute;
     24   right: 8px;
     25   top: 118px;
     26   z-index: -1;
     27   }
     28 
     29   #firstParg
     30   {
     31   height: 20px;
     32   margin-bottom: 90px;
     33   margin-top: 0px;
     34   }
     35 
     36   #floatingParg
     37   {
     38   background-color: orange;
     39   float: left;
     40   height: 100px;
     41   margin: 0;
     42   width: 200px;
     43   }
     44 
     45   #lastParg
     46   {
     47   background-color: green;
     48   clear: none;
     49   height: 100px;
     50   margin-top: 75px;
     51   }
     52   ]]></style>
     53 
     54  </head>
     55 
     56  <body>
     57 
     58   <div id="overlapped-red"></div>
     59 
     60   <p id="firstParg"></p>
     61 
     62   <p id="floatingParg"></p>
     63 
     64   <p id="lastParg"></p>
     65 
     66   <p>Test passes if there is above an orange rectangle and a wide green rectangle side by side, touching each other. The top of the orange rectangle should be flush with the top of the green rectangle. There should be no red.</p>
     67 
     68  </body>
     69 </html>