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.

thanks.
g.


=======
<?xml version="1.0" encoding="utf-8"?>
<tt xml:lang="en"
    xmlns="http://www.w3.org/2006/10/ttaf1"
    xmlns:tts="http://www.w3.org/2006/10/ttaf1#style"
    xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata">
  <head>
    <metadata>
      <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>
    </metadata>
    <region xml:id="r1">
        <style tts:origin="0px 0px"/>
        <style tts:extent="130px 70px"/>
        <style tts:backgroundColor="black"/>
        <style tts:padding="10px 30px"/>
    </region>
  </head>
  <body>
    <div>
      <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>
    </div>
  </body>
</tt>


________________________________________
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.

Philippe
Received on Friday, 12 December 2008 15:00:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 2 November 2009 22:41:39 GMT