text-align-last-008

text-align-last - auto and text-align - end

WeasyPrint

This browser

Assertion
The 'text-align-last' property set to 'auto' on a block element aligns the last line text to the right when text-align set 'end'.

Source

 1 <!DOCTYPE html>
 2 <html><head><meta charset="utf-8">
 3 <title>CSS Text Test: text-align-last - auto and text-align - end</title>
 4 <link href="http://www.intel.com" rel="author" title="Intel">
 5 <link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan">
 6 <link href="http://www.w3.org/TR/css-text-3/#text-align-last" rel="help" title="7.2. Last Line Alignment: the 'text-align-last' property">
 7 <meta content="" name="flags">
 8 <meta content="The 'text-align-last' property set to 'auto' on a block element aligns the last line text to the right
 9 when text-align set 'end'." name="assert">
10 <style>
11   div {
12     border: 1px solid blue;
13     text-align: end;
14     text-align-last: auto;
15     width: 200px;
16   }
17 </style>
18 </head><body>
19   <p>Test passes if the last line of "FillerText" below is aligned to the right, inside the blue box.</p>
20   <div>FillerText FillerText FillerText FillerText FillerText</div>
21 
22 </body></html>