tor-browser

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

white-space-pre-006.xht (1691B)


      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 pre: zero width non-breaking space</title>
      5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
      6   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 -->
      7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/text/white-space/pre/006.html" type="text/html"/>
      8   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model" />
      9   <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-rules" />
     10   <link rel="match" href="white-space-normal-005-ref.xht" />
     11 
     12   <meta name="flags" content="ahem" />
     13 
     14   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     15   <style type="text/css">
     16    /* setup */
     17    td * { white-space: pre; font: inherit; }
     18    div { display: block; }
     19    span { display: inline; }
     20 
     21    /* test */
     22    td { font: 20px/1 Ahem; color: maroon; background: red; padding: 0; }
     23    span { background: lime; }
     24    div { color: green; }
     25   </style>
     26  </head>
     27  <body>
     28   <p>Test passes if there is a filled bright green square with a thick green border and if there is <strong>no red</strong>.</p>
     29   <!-- U+00A0 is exactly equivalent to U+200B U+0020 U+200B -->
     30   <table>
     31    <tr>
     32     <td>
     33      <div>XXXXX</div>
     34      <div><span>X&#x00A0;&#x00A0;&#x00A0;X</span></div>
     35      <div><span>X&#x200B; &#x200B; &#x200B; &#x200B;X</span></div>
     36      <div><span>X &#x200B; &#x200B; X</span></div>
     37      <div>XXXXX</div>
     38     </td>
     39    </tr>
     40   </table>
     41  </body>
     42 </html>