tor-browser

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

clear-inline-001.xht (1255B)


      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: Clear on inline elements</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-07-02 -->
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" />
      8         <link rel="match" href="clear-inline-001-ref.xht" />
      9 
     10         <meta name="assert" content="Clear cannot be applied to an inline box." />
     11         <style type="text/css">
     12             #span1
     13             {
     14                 background-color: orange;
     15                 float: left;
     16                 height: 1in;
     17                 width: 1in;
     18             }
     19             #span2
     20             {
     21                 background: blue;
     22                 clear: left;
     23             }
     24         </style>
     25     </head>
     26     <body>
     27         <p>Test passes if a short blue stripe is to the right of the orange square.</p>
     28         <div>
     29             <span id="span1"></span>
     30             <span id="span2">Filler Text</span>
     31         </div>
     32     </body>
     33 </html>