tor-browser

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

empty-inline-002.xht (2291B)


      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: Empty line box influence</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-04-04 -->
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-line-height" />
      8         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" />
      9         <link rel="match" href="empty-inline-002-ref.xht" />
     10 
     11         <meta name="flags" content="ahem" />
     12         <meta name="assert" content="Empty inline elements still influence calculation just like elements with content." />
     13         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     14         <style type="text/css">
     15             div, span
     16             {
     17                 font: 100px/1em Ahem;
     18             }
     19             #div1
     20             {
     21                 margin-top: 100px;
     22             }
     23             #div2, #div3
     24             {
     25                 width: 500px;
     26             }
     27             #div2
     28             {
     29                 border: 25px solid green;
     30             }
     31             span
     32             {
     33                 background: green;
     34                 border: 25px solid green;
     35                 margin: 100px;
     36                 padding: 100px;
     37             }
     38             #div3
     39             {
     40                 border: 25px solid red;
     41                 height: 100px;
     42                 position: relative;
     43                 top: -150px;
     44                 z-index: -1;
     45             }
     46             #div3 div
     47             {
     48                 background: red;
     49                 border: 25px solid red;
     50                 height: 300px;
     51                 margin: 0 100px;
     52                 position: relative;
     53                 top: -125px;
     54                 width: 200px;
     55             }
     56         </style>
     57     </head>
     58     <body>
     59         <p>Test passes if there is <strong>no red</strong>.</p>
     60         <div id="div1">
     61             <div id="div2">
     62                 <span></span>
     63             </div>
     64             <div id="div3">
     65                 <div></div>
     66             </div>
     67         </div>
     68     </body>
     69 </html>