text-align-justify-005.html (1267B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 <title>text-align: justify, dir=auto, RTL first strong</title> 6 <link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'> 7 <link rel='help' href='https://drafts.csswg.org/css-text-3/#text-align-property'> 8 <link rel='match' href='reference/text-align-justify-ref-005.html'> 9 <meta name="assert" content="text-align:justify aligns text in order to exactly fill the line box. Unless otherwise specified by text-align-last, the last line before a forced break or the end of the block is start-aligned – in this case, to the right."> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> 11 <style type='text/css'> 12 .test { text-align: justify; } 13 /* the CSS below is not part of the test */ 14 .test, .ref { border: 1px solid orange; margin: 20px; width: 450px; color: orange; font: 25px/1 Ahem; } 15 </style> 16 </head> 17 <body> 18 <div id='instructions'>Test passes if the shading in both orange boxes is the same.</div> 19 <div dir="auto" class="test">‏TES TES TES TES TES TES TES TES TES TES TES</div> 20 <div class="ref"> 21 <div style="word-spacing: 1em;">REF REF REF REF</div> 22 <div style="word-spacing: 1em;">REF REF REF REF</div> 23 <div style="text-align: right;">REF REF REF</div> 24 </div> 25 </body> 26 </html>