tor-browser

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

floats-031.xht (1868B)


      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: Position of floated elements in relation to previous 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-09 -->
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#float-position" title="9.5.1 Positioning the float: the 'float' property"/>
      8 		<link rel="match" href="floats-031-ref.xht" />
      9 
     10         <meta name="flags" content="image" />
     11         <meta name="assert" content="Outer top of floating box cannot be higher than the top of any line-box containing a box generated by an element earlier in the source document." />
     12         <style type="text/css">
     13             div
     14             {
     15                 border: solid 5px black;
     16                 font: 16px serif;
     17                 margin: 10px;
     18                 width: 550px;
     19             }
     20             #span1
     21             {
     22                 background-color: orange;
     23                 float: left;
     24             }
     25             #span1, img
     26             {
     27                 height: 0.5in;
     28                 width: 1in;
     29             }
     30             span span
     31             {
     32                 display: inline-block;
     33                 width: 550px;
     34             }
     35         </style>
     36     </head>
     37     <body>
     38         <p>Test passes if the orange rectangle is to the left of the "Filler Text" and the blue rectangle is to the right of the "Filler Text".</p>
     39         <div>
     40             <span><span></span>Filler Text Filler Text</span>
     41             <img alt="blue box" src="support/blue15x15.png" />
     42             <span id="span1"></span>
     43         </div>
     44     </body>
     45 </html>