white-space-mixed-001.xht (2665B)
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 4 <!-- ================================================================ --> 5 <!-- WARNING! This document contains significant trailing whitespace! --> 6 <!-- ================================================================ --> 7 8 <head> 9 <title>CSS Test: white-space: mixed tests</title> 10 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 11 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 --> 12 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/text/white-space/mixed/001.html" type="text/html"/> 13 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model" /> 14 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-property" /> 15 <link rel="match" href="white-space-mixed-001-ref.xht" /> 16 17 <meta name="flags" content="ahem" /> 18 19 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 20 <style type="text/css"> 21 .test 22 { 23 background: yellow; 24 border: solid blue; 25 color: orange; 26 font: 1.25em/1 Ahem; 27 width: 19em; 28 } 29 30 .normal { white-space: normal; } 31 .nowrap { white-space: nowrap; } 32 .pre { white-space: pre; } 33 </style> 34 </head> 35 <body> 36 <p>There should be a pretty yellow and orange pattern and "PASS" in orange on white.</p> 37 <div class="test pre">1234567890123456789<span class="normal"> 38 x <span> 39 x <span class="pre"></span> x<span> 40 41 </span> x x</span> x <span> x x </span> x <span class="pre">x</span> 42 1234</span>567890123456789 xxxx xxxx xx<span class="normal">x<span class="nowrap">x 43 xxxx </span> </span>x<span class="normal"> <span class="pre"> </span> <span class="pre"> </span> <span class="pre"> </span> 44 <span class="nowrap"> 45 </span> </span> <span class="pre"> </span><span class="normal"> </span> <span class="nowrap"> 46 </span><span class="normal"> </span> x x x x x x x 47 <span class="nowrap">x 48 x x x x x x x x x xxxx 49 xxxx xxxx xxxx </span> 50 x x x x x x x<span class="normal"> xxxxxxxxxxxxxxxxxxx<span 51 class="pre"> x x x xxxx xxxx </span></span> 52 </div> 53 54 <p>The pattern in the blue rectangle above should look exactly like the reference rendering below:</p> 55 56 <div class="test pre">1234567890123456789 57 x x x x x x x x x x 58 1234567890123456789 xxxx xxxx xxxx xxxx 59 x x x x x x x x 60 x x x x x x x x x x xxxx xxxx xxxx xxxx 61 x x x x x x x 62 xxxxxxxxxxxxxxxxxxx x x x xxxx xxxx</div> 63 64 </body> 65 </html>