tor-browser

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

white-space-collapsing-001.xht (1942B)


      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: collapsing through padding, borders, margins</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-28 -->
      7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/text/white-space/normal/collapsing/001.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-phase-1" />
     10   <link rel="match" href="white-space-collapsing-001-ref.xht" />
     11 
     12   <meta name="flags" content="ahem"/>
     13   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     14   <style type="text/css">
     15     .test { font: 1.25em/1 Ahem; background: white; color: red; }
     16     .test span { background: red; color: green; }
     17     .a, .b, .c, .d, .e { margin-left: 1em; }
     18     .f span { margin-left: 1em; }
     19     .g span { padding-left: 1em; background: white; }
     20     .h span { border-left: 1em white solid; }
     21     .i span { margin-left: 0.25em; border-left: 0.5em white solid; padding-left: 0.25em; background: white; }
     22   </style>
     23  </head>
     24  <body>
     25   <p>Test passes if there is a vertical green bar and <strong>no red</strong>.</p>
     26   <div class="test a"><span>X</span> </div>
     27   <div class="test b"><span> X</span> </div>
     28   <div class="test c"> <span>X</span> </div>
     29   <div class="test d"> <span> X</span> </div>
     30   <div class="test e"> <span> X</span> </div>
     31   <div class="test f"> <span> X</span> </div>
     32   <div class="test g"> <span> X</span> </div>
     33   <div class="test h"> <span> X</span> </div>
     34   <div class="test i"> <span> X</span> </div>
     35   <div class="test a"><span>X</span> </div>
     36  </body>
     37 </html>