word-spacing-percent-001.html (1270B)
1 <!DOCTYPE html> 2 <html lang="en" > 3 <meta charset="utf-8"> 4 <title>word-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/#word-spacing'> 7 <link rel='match' href='reference/word-spacing-percent-001-ref.html'> 8 <meta name="assert" content="Percentage values of word-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="word-spacing: 1em">ABC123().*$いろはx x x፡x་x <small style="word-spacing: 1em">ABC123().*$いろはx x x፡x་x</small></div> 17 <div style="word-spacing: 100%">ABC123().*$いろはx x x፡x་x <small>ABC123().*$いろはx x x፡x་x</small></div> 18 <div style="word-spacing: calc(0.5em + 50%)">ABC123().*$いろはx x x፡x་x <small style="word-spacing: calc(0.5em + 50%)">ABC123().*$いろはx x x፡x་x</small></div> 19 <div style="word-spacing: 100%; font-size: 0.1em"><div style="font-size: 20px">ABC123().*$いろはx x x፡x་x <small>ABC123().*$いろはx x x፡x་x</small></div></div>