tor-browser

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

line-box-height-002.xht (1523B)


      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: Height for inline replaced elements and 'line-height'</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-line-height" />
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" />
      8         <link rel="match" href="line-box-height-002-ref.xht" />
      9 
     10         <meta name="flags" content="image" />
     11         <meta name="assert" content="The 'line-height' property doe not set the height for inline replaced elements. The height of the replaced element sets the line-height'." />
     12         <style type="text/css">
     13             #div1
     14             {
     15                 position: relative;
     16             }
     17             img
     18             {
     19                 display: inline;
     20                 line-height: 2in;
     21             }
     22             div div
     23             {
     24                 background: orange;
     25                 height: 96px;
     26                 left: 1in;
     27                 position: absolute;
     28                 top: 0;
     29                 width: 96px;
     30             }
     31         </style>
     32     </head>
     33     <body>
     34         <p>Test passes if the blue and orange squares have the same height.</p>
     35         <div id="div1">
     36             <img alt="blue 96x96" src="support/blue96x96.png" />
     37             <div></div>
     38         </div>
     39     </body>
     40 </html>