text-justify-001.html (1370B)
1 <!DOCTYPE html> 2 <html lang="en" > 3 <head> 4 <meta charset="utf-8"> 5 <title>text-justify: none</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-justify-ref-001.html'> 9 <meta name="assert" content="text-justify:none means justification is disabled: there are no justification opportunities within the text."> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style type='text/css'> 12 .test { text-align: justify; text-justify: none; } 13 /* the CSS below is not part of the test */ 14 .test, .ref { border: 1px solid orange; margin: 20px; width: 290px; color: orange; font: 24px/24px Ahem; } 15 .ref { position: relative; height: 72px; } 16 #rb1 { position: absolute; top: 0; left: 0; background-color: orange; width: 72px; height: 72px; } 17 #rb2 { position: absolute; top: 0; left: 96px; background-color: orange; width: 72px; height: 72px; } 18 #rb3 { position: absolute; top: 0; left: 192px; background-color: orange; width: 72px; height: 48px; } 19 </style> 20 </head> 21 <body> 22 <div id='instructions'>Test passes if the shading in both orange boxes looks the same.</div> 23 <div class="test">XXX XXX XXX XXX XXX XXX XXX XXX</div> 24 <div class="ref"><div id="rb1"></div><div id="rb2"></div><div id="rb3"></div></div> 25 </body> 26 </html>