text-align-last property

This is a personal comment on the css3-text module.  

In 4.3. Last line alignment: the 'text-align-last' property'
[not sure why there is a final quote character there!]:

1.  The XSL spec uses a value of "relative" for what the CSS3
    draft appears to call "auto".

    Question:  Can you confirm (or explain otherwise) that the
    "auto" value here has the same semantic of XSL's "relative"?

    Issue:  Does CSS3 want to use the same value as XSL here?

    Opinion:  I would like to ensure that the semantics
    are the same.  My implementation can handle having two names
    for the same thing, so it isn't crucial to me that CSS3 uses
    "relative", though it does seem a shame to make a difference
    for no reason (and it may be that there are other pressures
    within the W3C to use the same name).

2.  The "justify" value says "The last line will be justified like 
    the other lines."  This seems to say that, in the case:

      text-align="left"
      text-align-last="justify"

    the last line will be left aligned.  This is wrong.  The XSL
    spec [1] indicates that "justify":

      Specifies that the contents is to be expanded to fill the
      available width in the inline-progression-direction.

    Note this is crucial in a one line block where text-align is
    left to default to "start" (or inherit) but text-align-last
    is set to "justify" (for example, a table of contents entry
    where you want the line to stretch--probably where there are
    leaders--to fill the page width).

    

paul

[1] http://www.w3.org/TR/xsl/slice7.html#text-align-last

Received on Friday, 25 October 2002 11:34:35 UTC