text-align-last-wins-001.html (652B)
1 <!doctype html> 2 <html lang=en> 3 <meta charset=utf-8> 4 <title>CSS text test: text-align-last has precedence over text-align-all</title> 5 <link rel=help href="https://drafts.csswg.org/css-text-3/#text-align-all-property"> 6 <link rel=help href="https://drafts.csswg.org/css-text-3/#text-align-last-property"> 7 <link rel="match" href="reference/text-align-last-wins-001-ref.html"> 8 <meta name=assert content="If a line is both the first and last line, text-align-last applies"> 9 <style> 10 div { 11 text-align-last: right; 12 width: 300px; 13 border: solid; 14 } 15 </style> 16 17 <p>Test passes if the words below are aligned to the right of the box. 18 19 <div>right<br>right</div>