text-align-last-012

text-align-last - center(one line inside block element)

WeasyPrint

This browser

Assertion
The 'text-align-last' property set to 'center' on a block element aligns the only one line text to the center.

Source

 1 <!DOCTYPE html>
 2 <html><head><meta charset="utf-8">
 3 <title>CSS Text Test: text-align-last - center(one line inside block element)</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 'center' on a block element aligns the only one line text to the center." name="assert">
 9 <style>
10   div {
11     border: 1px solid blue;
12     text-align-last: center;
13   }
14 </style>
15 </head><body>
16   <p>Test passes if the line of "FillerText" below is centered inside the blue box.</p>
17   <div>FillerText FillerText FillerText FillerText FillerText</div>
18 
19 </body></html>