text-align-white-space-006.xht (2372B)
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: Text-align set to 'justify' with 'white-space' set to 'pre-line' and 'direction' set to 'rtl'</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-28 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#alignment-prop" /> 8 <link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-property"/> 9 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-property"/> 10 <link rel="match" href="text-align-white-space-002-ref.xht" /> 11 12 <meta name="flags" content="ahem" /> 13 <meta name="assert" content="Setting 'text-align' to 'justify' and 'white-space' to 'pre-line', 'text-align' remains 'justified'." /> 14 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 15 <style type="text/css"> 16 div 17 { 18 direction: rtl; 19 font: 20px/1 Ahem; 20 position: relative; 21 width: 9em; 22 } 23 div div 24 { 25 position: absolute; 26 } 27 #test 28 { 29 color: green; 30 text-align: justify; 31 white-space: pre-line; 32 } 33 .red 34 { 35 color: red; 36 } 37 .green 38 { 39 color: green; 40 } 41 </style> 42 </head> 43 <body> 44 <p>Test passes if there is <strong>no red</strong>.</p> 45 <div> 46 <div><span class="red">xxx</span><span class="green">xxx</span><span class="red">xxx</span> 47 <span class="red">xxx</span><span class="green">xxx</span><span class="red">xxx</span> 48 <span class="red">xxx</span><span class="green">xxx</span><span class="red">xxx</span> 49 <span class="green">xx</span><span class="red">xxx</span><span class="green">x</span><span class="red">xxx</span></div> 50 <div id="test">XXX XXX XXX XXX XXX XXX XXX XXX</div> 51 </div> 52 </body> 53 </html>