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

RE: question re tts:display test

From: Sean Hayes <Sean.Hayes@microsoft.com>
Date: Wed, 10 Dec 2008 15:33:01 +0000
To: Geoff Freed <geoff_freed@wgbh.org>, "public-tt@w3.org" <public-tt@w3.org>
Message-ID: <90EEC9D914694641A8358AA190DACB3D2FCEA623DF@EA-EXMSG-C334.europe.corp.microsoft.com>
No not quite. The display='none' on the div will always remain; thus the whole div will never be shown.
Also a set requires a tts: attribute value to change.

(Without validation) I think the following would work:

<?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 - Display - 001</ttm:title>
      <ttm:desc>Test tts:display attribute with the auto value in a span.</ttm:desc>
      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
    </metadata>
    <styling>
        <style xml:id=s1 tts:display="none"/>
     </styling>
  </head>
  <body timeContainer='par'>
    <div>
      <p dur="10s" style="s1">
<set begin="1s" dur="8s" tts:display="auto"/>
This text becomes visible at 00:00:01.00 and erases at 00:00:09.00.
      </p>
    </div>
  </body>
</tt>

Sean Hayes
Media Accessibility Strategist
Accessibility Business Unit
Microsoft

Office:  +44 118 909 5867,
Mobile: +44 7875 091385

From: public-tt-request@w3.org [mailto:public-tt-request@w3.org] On Behalf Of Geoff Freed
Sent: 10 December 2008 14:47
To: public-tt@w3.org
Subject: question re tts:display test


i'm writing tests for tts:display, and would like to make them simpler than the one shown in the spec ( http://www.w3.org/TR/2006/CR-ttaf1-dfxp-20061116/#style-attribute-display).  before i get too carried away, i thought i'd send one sample.  does this look correct?

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 - Display - 001</ttm:title>
      <ttm:desc>Test tts:display attribute with the auto value in a span.</ttm:desc>
      <ttm:copyright>Copyright (C) 2008 W3C (MIT, ERCIM, Keio).</ttm:copyright>
    </metadata>
    <styling>
        <style xml:id=s1 tts:display="none"/>
     </styling>
  </head>
  <body>
    <div style="s1">
      <p dur="10s"><span tts:display="auto"><set begin="1s" dur="8s"/>This text becomes visible at 00:00:01.00 and erases at 00:00:09.00.</span></p>
      <p begin="10s" end="15s">This text is not visible.<p>
    </div>
  </body>
</tt>
Received on Wednesday, 10 December 2008 15:35:01 GMT

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