tor-browser

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

height-applies-to-010a.xht (1684B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 
      5  <head>
      6 
      7   <title>CSS Test: height set to 0 to elements with 'display' set to 'list-item'</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@MIT.EDU" />
     11   <link rel="help" title="10.5 Content height: the 'height' property" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" />
     12   <link rel="help" title="11.1.1 Overflow: the 'overflow' property" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" />
     13   <link rel="match" href="height-applies-to-010a-ref.xht" />
     14 
     15   <meta content="If height of content exceeds the set height of a block-level non-replaced element in normal flow (like a list-item element such as in this test), then the content should overflow according to the 'overflow' property." name="assert" />
     16 
     17   <style type="text/css"><![CDATA[
     18   div
     19   {
     20   color: green;
     21   display: list-item;
     22   font: 2em/1 serif;
     23   height: 0px;
     24   margin-left: 1.25em;
     25   overflow: visible;
     26   list-style-type: "\2022";
     27   }
     28 
     29   ul
     30   {
     31   height: auto;
     32   margin-top: 3em;
     33   overflow: visible;
     34   }
     35 
     36   li
     37   {
     38   color: green;
     39   font: 2em/1 serif;
     40   height: 0px;
     41   overflow: visible;
     42   list-style-type: "\2022";
     43   }
     44 
     45   ul#heightless {height: 0px;}
     46   ]]></style>
     47 
     48  </head>
     49 
     50  <body>
     51 
     52   <p>Test passes if <strong>3 green "PASS"</strong> are each preceded by a filled disc.</p>
     53 
     54   <div>PASS</div>
     55 
     56   <ul>
     57     <li>PASS</li>
     58   </ul>
     59 
     60   <ul id="heightless">
     61     <li>PASS</li>
     62   </ul>
     63 
     64  </body>
     65 </html>