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

RE: new tts:padding tests

From: Geoff Freed <geoff_freed@wgbh.org>
Date: Fri, 12 Dec 2008 09:54:50 -0500
To: Philippe Le Hegaret <plh@w3.org>, "public-tt@w3.org" <public-tt@w3.org>
Message-id: <E36081A12A13F146AC32D7724B0E89120561CAA202@EXCHCCR.wgbh.org>

since i'm trying to illustrate padding around the text block within the region, perhaps i should add tts:backgroundColor="black" in <region>.  would that do it?  see below.


<?xml version="1.0" encoding="utf-8"?>
<tt xml:lang="en"
      <ttm:title>Styling Test - Padding - 002</ttm:title>
      <ttm:desc>Test tts:padding attribute with two values.</ttm:desc>
      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
    <region xml:id="r1">
        <style tts:origin="0px 0px"/>
        <style tts:extent="130px 70px"/>
        <style tts:backgroundColor="black"/>
        <style tts:padding="10px 30px"/>
      <p begin="0s" end="5s"  region="r1" tts:backgroundColor="green">The before and after edges<br />are padded by 10 pixels.</p>

      <p begin="5s" end="10s" region="r1" tts:backgroundColor="red">The start and end edges<br />are padded by 30 pixels.</p>

From: Philippe Le Hegaret [plh@w3.org]
Sent: Friday, December 12, 2008 9:39 AM
To: Geoff Freed
Cc: public-tt@w3.org
Subject: Re: new tts:padding tests

On Fri, 2008-12-12 at 09:13 -0500, Geoff Freed wrote:
> attached are new tests for tts:padding.  i'm not sure about 005, which is supposed to demonstrate inheritance-- someone please take a look and let me know if it's all screwed up.

01-4 looks ok except that, since the text is aligned in the middle by
default, it's not possible to tell if there is padding or not on the
left and right. One solution would be to add a textAlign property as
well, depending on which edge you wish to test.

Received on Friday, 12 December 2008 15:00:35 UTC

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