letter-spacing-102.xht (1226B)
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" lang="en"> 3 <head> 4 <title>CSS Test: Dynamic letter-spacing changes</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/text/letter-spacing/001.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#spacing-props" /> 9 <link rel="help" href="https://drafts.csswg.org/css-text-3/#letter-spacing-property"/> 10 <link rel="match" href="letter-spacing-102-ref.xht" /> 11 <meta name="flags" content="dom"/> 12 <style type="text/css"> 13 #test, #control { color: blue; font-weight: bold; border: solid silver thick; } 14 #control { letter-spacing: 7em; } 15 </style> 16 </head> 17 <body onload="document.getElementById('alter').style.letterSpacing = '7em'"> 18 <p>The contents of the two silver boxes must be identical.</p> 19 <p id="control">ab cd ef gh i j</p> 20 <p id="test"> 21 <span id="alter"><span>ab cd ef gh i j</span></span> 22 </p> 23 </body> 24 </html>