white-space-trim-discard-inner-001.xht (1495B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <title>CSS Test: white-space-trim - discard-inner - basic cases</title> 6 <link rel="author" title="Satoshi Umehara" href="mailto:umehara@est.co.jp" /> 7 <link rel="help" title="CSS Text Level 4: 3.2. White Space Trimming: the ‘white-space-trim’ property" href="https://drafts.csswg.org/css-text-4/#white-space-trim" /> 8 <link rel="match" href="reference/white-space-trim-discard-inner-001-ref.xht"/> 9 <meta name="assert" content="The UA should discard all white space at the beginning of a block and all white space at the end of a block when white-space-trim is set to discard-inner." /> 10 <style type="text/css"> 11 <![CDATA[ 12 .test span { 13 white-space-trim: discard-inner; 14 } 15 /* the CSS below is not part of the test */ 16 div { 17 color: Blue; 18 } 19 ]]> 20 </style> 21 </head> 22 <body> 23 <p> 24 Test passes if each text positions in the first line match the corresponding positions in the second line. 25 </p> 26 <div> 27 <div class="test"> 28 [<span> 1 2 </span>] 29 [<span> 3 4 </span>] 30 [<span> 5 6 </span>] 31 [<span> 32 33 7 34 35 8 36 37 </span>] 38 </div> 39 <div> 40 [<span>1 2</span>] 41 [<span> 3 4 </span>] 42 [<span>5 6</span>] 43 [<span>7 44 45 8</span>] 46 </div> 47 </div> 48 </body> 49 </html>