tor-browser

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

white-space-normal-008.xht (1713B)


      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 normal: 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/normal/008.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-008-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    * { white-space: normal; font: inherit; }
     18    strong {font-weight: bold;}
     19    div { display: block; margin: 1em; }
     20    span { display: inline; }
     21 
     22    /* test */
     23    div { font: 20px/1 Ahem; }
     24    .green { background: lime; color: green; }
     25    .red { background: red; color: maroon; }
     26   </style>
     27  </head>
     28  <body>
     29   <p>Test passes if there are only 2 identical striped green and lime bars and <strong>no red</strong>.</p>
     30 
     31   <div><span class="red">
     32    <span class="green">X </span> <span class="red"> </span> <span class="green"> X </span>
     33    <span class="green">X </span>  <span class="green"> X </span>
     34    <span class="green">X</span><span class="green"> X<span class="red"> </span></span>
     35   </span></div>
     36 
     37   <div><span class="green">X X X X X X</span></div>
     38 
     39  </body>
     40 </html>