letter-spacing-201.html (2138B)
1 <!DOCTYPE html> 2 <html lang="en" > 3 <meta charset="utf-8"> 4 <title>letter-spacing at line endings (spaces)</title> 5 <link rel='author' title='Elika J. Etemad' href='http://fantasai.inkedblade.net/contact'> 6 <link rel='help' href='https://www.w3.org/TR/css-text-3/#letter-spacing'> 7 <link rel='match' href='reference/letter-spacing-201-ref.html'> 8 <meta name="assert" content="Letter spacing is not applied at the start/end of a line even on spaces."> 9 <style type='text/css'> 10 @import "/fonts/ahem.css"; 11 .contain { 12 /* Setup Boxes */ 13 font: 20px/1 Ahem; 14 width: 5em; 15 border: solid blue; 16 margin: 1em; 17 float: left; 18 } 19 span, .test { 20 letter-spacing: 1em; 21 } 22 p { 23 white-space: pre-wrap; 24 margin: 0; 25 } 26 </style> 27 28 <div id='instructions'>Test passes if the pattern is identical in all four blue boxes.</div> 29 30 <!-- Letter-spacing on Containing Block --> 31 <div class="contain"> 32 <!-- single line block test --> 33 <p class="test"> x </p> 34 <!-- start/end line wrap test --> 35 <p class="test">xx ​ x ​ xx</p> 36 <!-- start/end forced line breaks test --> 37 <p class="test">xx <br> x <br> xx</p> 38 <p class="test">xx 
 x 
 xx</p> 39 </div> 40 41 <!-- Line Endings Coinciding with Inline Element Boundary (Internal Break) --> 42 <div class="contain"> 43 <!-- single line block test --> 44 <p><span> x </span></p> 45 <!-- start/end line wrap test --> 46 <p>x x ​<span> x </span>​ x x</p> 47 <!-- start/end forced line breaks test --> 48 <p>x x <span><br> x <br></span> x x</p> 49 <p>x x <span>
 x 
</span> x x</p> 50 </div> 51 52 <!-- Line Endings Coinciding with Inline Element Boundary (External Break) --> 53 <div class="contain"> 54 <!-- duplicate single line block test --> 55 <p><span> x </span></p> 56 <!-- start/end line wrap test --> 57 <p>x x <span>​ x ​</span> x x</p> 58 <!-- start/end forced line breaks test --> 59 <p>x x <br><span> x </span><br> x x</p> 60 <p>x x 
<span> x </span>
 x x</p> 61 </div> 62 63 <!-- Control --> 64 <div class="contain"> 65 <p> x </p> 66 <p>x x <br> x <br> x x</p> 67 <p>x x <br> x <br> x x</p> 68 <p>x x <br> x <br> x x</p> 69 </div>