blob: 26dd9c87bd8c4c0ab003a64f418db3e9e44ae819 [file] [log] [blame]
<title>CSS 2.1 Test Suite: letter-spacing</title>
<script src="../resources/ahem.js"></script>
<style type="text/css">
div { font: 24px/1 Ahem; width: 15em; background: yellow; color: aqua; margin: 0 0 0 2em; }
.eight {letter-spacing: 48px;}
.nine {letter-spacing: normal;}
.ten {letter-spacing: 300%;}
.eleven {letter-spacing: -0.5em;}
<link rel="help" href="" title="16.4 Letter and word spacing: the 'letter-spacing' and 'word-spacing' properties">
<p>There should be a stripy pattern of yellow and aqua below (each vertical stripe should be straight and unbroken).</p>
<div class="test">x  x    xx xx </div>
<div class="test">x  x    xx xx </div>
<div class="test">x  x    xx xx </div>
<div class="eight"> xx <span class="nine">xx xx</span> </div> <!-- this test assumes letter-spacing is distributed evenly on both sides of each letter (half on each side), which is not specified in the spec (the spec leaves this undefined) -->
<div class="ten">x  x    xx xx </div>
<div class="eleven">x     x         x x   x x </div>