W3C home > Mailing lists > Public > public-tt@w3.org > December 2008

Re: TextAlign002 and use of textAlign on span elements

From: Geoff Freed <geoff_freed@wgbh.org>
Date: Thu, 11 Dec 2008 08:42:19 -0500
To: "Glenn A. Adams" <gadams@xfsi.com>, Philippe Le Hegaret <plh@w3.org>, Public TTWG List <public-tt@w3.org>
Message-id: <C56682EB.45BE%geoff_freed@wgbh.org>

i'll go back and correct these tests.


On 12/10/08 6:02 PM, "Glenn A. Adams" <gadams@xfsi.com> wrote:

Since textAlign only applies to the placement of inline areas inside a block
area, then it only has meaning on p, since that is the only element that
generates block area(s) with inline area children. In the case of body and
div, they generate block area(s) with block area children, so textAlign does
not apply. Finally, region maps to an fo:block-container containing block
area children, so again textAlign would not apply. See sections 9.3.2[2-3]
and XSL formatting semantics for more information on these constraints.

On 12/11/08 6:17 AM, "Philippe Le Hegaret" <plh@w3.org> wrote:

> I noticed that the test TextAlign002.xml is using textAlign on a span
> element:
> [[
> [...]
> <body>
>     <div>
>       <p begin="0s" end="10s" tts:textAlign="right"><span
> tts:textAlign="left">This caption is on the left</span>.</p>
>     </div>
>   </body>
> ]]
> However, the spec indicates that textAlign can only be applied to p
> elements (see table in section 8.2.19). Since the span element has the
> width of the text it contains, textAlign would have no effect here
> anyway.
> I suggest TextAlign should also be applicable to region, body, and div.
> Philippe
Received on Thursday, 11 December 2008 13:43:06 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 5 October 2017 18:24:03 UTC