letter-spacing-percent-001.html (1295B)
1 <!DOCTYPE html> 2 <html lang="en" > 3 <meta charset="utf-8"> 4 <title>letter-spacing as percentages</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-4/#letter-spacing'> 7 <link rel='match' href='reference/letter-spacing-percent-001-ref.html'> 8 <meta name="assert" content="Percentage values of letter-spacing are relative to the current font-size."> 9 <style type='text/css'> 10 div { font-size: 20px; line-height: 1; color: blue; } 11 small { font-size: 50%; } 12 </style> 13 14 <p>Test passes if the pattern is identical on all four lines. 15 16 <div style="letter-spacing: 0.1em">ABC123().*$いろはx x x፡x་x 17 <small style="letter-spacing: .1em">ABC123().*$いろはx x x፡x་x</small></div> 18 <div style="letter-spacing: 10%">ABC123().*$いろはx x x፡x་x 19 <small>ABC123().*$いろはx x x፡x་x</small></div> 20 <div style="letter-spacing: calc(0.05em + 5%)">ABC123().*$いろはx x x፡x་x 21 <small style="letter-spacing: calc(0.05em + 5%)">ABC123().*$いろはx x x፡x་x</small></div> 22 <div style="letter-spacing: 10%; font-size: 0.1em"><div style="font-size: 20px">ABC123().*$いろはx x x፡x་x 23 <small>ABC123().*$いろはx x x፡x་x</small></div></div>