tor-browser

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

inlines-016.xht (1432B)


      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" lang="en">
      3  <head>
      4   <title>CSS Test: Inline box model: space collapsing, padding, white-space, et al</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-27 -->
      7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/016.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="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes" />
     10   <link rel="match" href="inlines-016-ref.xht" />
     11 
     12   <meta name="flags" content="ahem"/>
     13   <meta name="assert" content="If a space (U+0020) at the beginning of a line
     14     has 'white-space' set to 'normal', then it is removed, even if there's padding."/>
     15   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     16   <style type="text/css">
     17    div { width: 4em; background: teal; color: aqua; margin: 1em; font: 2.5em/1 Ahem; }
     18    .test span { padding-left: 1em; }
     19    .control { white-space: pre; }
     20   </style>
     21  </head>
     22  <body>
     23   <p>The following two blocks should be identical.</p>
     24   <div class="test"><span> XX</span></div>
     25   <div class="control"><span> XX</span></div>
     26  </body>
     27 </html>