W3C home > Mailing lists > Public > public-tt@w3.org > April 2012

Re: Padding on tt:p and tt:span elements

From: Glenn Adams <glenn@skynav.com>
Date: Tue, 24 Apr 2012 08:23:39 -0600
Message-ID: <CACQ=j+cdtaBTkiY3qQ2hseBQ-kXTc1Op=k+7Kb6Tx3DCM0C3wQ@mail.gmail.com>
To: Andreas Tai <tai@irt.de>
Cc: public-tt <public-tt@w3.org>
On Tue, Apr 24, 2012 at 1:41 AM, Andreas Tai <tai@irt.de> wrote:

>  As in TTML a region has always a predefined size, tt:p- and tt:span
> elements are the better choices to apply a non-transparent background color
> on a subtitle block that dynamically grows and shrinks with the
> corresponding text.
>

I'm not sure I understand what you mean by "has always a predefined size".
If by this you mean the "same" size, then I would not agree. A region's
size (extent) can be changed at any time by using <tt:set>.


> ****
>
> Unfortunately padding cannot be applied to tt:p and tt:span elements and
> the very common use case to have empty space between text and the border of
> a centered "text box" with dynamic width is hard to implement (for an
> illustration of two use cases see the attached images).****
>
> Therefore the EBU-Working group that specifies the TTML subset EBU-TT sees
> the requirements to add padding as an applicable style property for the
> tt:p and tt:span elements.****
>
> Best regards,****
>
> Andreas
>
Received on Tuesday, 24 April 2012 14:24:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 24 April 2012 14:24:38 GMT