white-space-mixed-003.xht (1405B)
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: mixed tests (simple)</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/mixed/003.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-property" /> 10 <link rel="match" href="white-space-mixed-003-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 .test { border: solid blue; font: 1.25em/1 Ahem; background: yellow; color: orange; float: left; margin: 1em; } 17 .normal { white-space: normal; } 18 .nowrap { white-space: nowrap; } 19 .pre { white-space: pre; } 20 </style> 21 </head> 22 <body> 23 <p>Test passes if the contents of the 2 small blue rectangles are <strong>identical</strong>.</p> 24 <div class="test normal"><span class="pre">x 25 <!-- --></span><span class="normal"> x</span></div> 26 <div class="test pre">x 27 x</div> 28 </body> 29 </html>