letter-spacing-102

Dynamic letter-spacing changes

WeasyPrint

This browser

Flags
dom

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html 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   <meta name="flags" content="dom">
10   <style type="text/css">
11    #test, #control { color: blue; font-weight: bold; border: solid silver thick; }
12    #control { letter-spacing: 7em; }
13   </style>
14  </head>
15  <body onload="document.getElementById('alter').style.letterSpacing = '7em'">
16   <p>The contents of the two silver boxes must be identical.</p>
17   <p id="control">ab cd ef gh i j</p>
18   <p id="test">
19    <span id="alter"><span>ab cd ef gh i j</span></span>
20   </p>
21  </body>
22 </html>