tor-browser

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

white-space-applies-to-003.xht (1751B)


      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: White-space application to 'display: list-item' element</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#propdef-white-space" />
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-prop" />
      8         <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-property"/>
      9         <link rel="match" href="white-space-applies-to-003-ref.xht" />
     10         <meta name="flags" content="ahem" />
     11         <meta name="assert" content="The 'white-space' property applies to display: list-item elements." />
     12         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     13         <style type="text/css">
     14             body
     15             {
     16                 margin-left: 2em;
     17             }
     18             div
     19             {
     20                 font: 16px/1em Ahem;
     21             }
     22             #test
     23             {
     24                 display: list-item;
     25                 white-space: pre;
     26             }
     27             #ref1, #ref2
     28             {
     29                 background: black;
     30                 display: inline-block;
     31                 height: 1em;
     32                 width: 2em;
     33             }
     34             #ref2
     35             {
     36                 margin-left: 3em;
     37             }
     38         </style>
     39     </head>
     40     <body>
     41         <p>Test passes if there are two squares below and the left most square has a marker bullet on the left-hand side.</p>
     42         <div id="test">XX   XX</div>
     43         <div id="ref1"></div><div id="ref2"></div>
     44     </body>
     45 </html>