W3C home > Mailing lists > Public > www-xsl-fo@w3.org > September 2003

text-align vs text-align-last

From: Victor Vishnyakov <tch_@mail.ru>
Date: Tue, 23 Sep 2003 13:04:13 +0300
To: <www-xsl-fo@w3.org>
Message-ID: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAYMl6iFgB402mZDZojzVrDcKAAAAQAAAA31q/nJI+zky0nzKW8KsYeQEAAAAA@mail.ru>
Is "text-align-last" has higher priority over "text-align" or not?
 
I could not find definitive ansver in the spec an tried to test it
empirically. Thus I create the following file and run all known
formatters over it:
 
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
 <fo:layout-master-set>
  <fo:simple-page-master master-name="only">
   <fo:region-body/>
  </fo:simple-page-master>
 </fo:layout-master-set>
 <fo:page-sequence master-reference="only">
  <fo:flow flow-name="xsl-region-body">
   <fo:block>
    <fo:block border="1px" margin="10px" text-align="left"
text-align-last="right">text-align="left"
text-align-last="right"</fo:block>
   </fo:block>
  </fo:flow>
 </fo:page-sequence>
</fo:root>
 
FOP and Ibex aligned text to the left side of the page
XEP and XSLFormatter aligned text to the right side
 
 
The question: which alignation should be used for the 1-line blocks if
"text-align" is not the same to "text-align-last" and why?
Received on Tuesday, 23 September 2003 05:59:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:11 GMT