tor-browser

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

inline-non-replaced-height-003.xht (1815B)


      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: Inline non-replaced elements and border</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-10-16 -->
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-non-replaced" />
      8 		<link rel="match" href="inline-non-replaced-height-002-ref.xht" />
      9 
     10         <meta name="flags" content="ahem" />
     11         <meta name="assert" content="The border starts at the top and bottom of the content area not the 'line-height'." />
     12         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     13         <style type="text/css">
     14             #div1
     15             {
     16                 margin-top: 41px;
     17                 position: relative;
     18             }
     19             span
     20             {
     21                 background: blue;
     22                 border-bottom: 50px solid blue;
     23                 border-top: 50px solid blue;
     24                 color: blue;
     25                 font: 100px Ahem;
     26                 line-height: 150px;
     27             }
     28             div div
     29             {
     30                 background: orange;
     31                 height: 200px;
     32                 left: 100px;
     33                 position: absolute;
     34                 top: -25px; /* correspond to minus top-half-leading */
     35                 width: 100px;
     36             }
     37         </style>
     38     </head>
     39     <body>
     40         <p>Test passes if the blue and orange rectangles have the <strong>same height</strong>.</p>
     41         <div id="div1">
     42             <span>X</span>
     43             <div></div>
     44         </div>
     45     </body>
     46 </html>