W3C home > Mailing lists > Public > public-tt@w3.org > February 2015

ISSUE-371 (linePadding test): linePadding test needs to apply the background color to the line areas only [TTML 1.0 Test Suite]

From: Timed Text Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Mon, 16 Feb 2015 14:24:01 +0000
To: public-tt@w3.org
Message-Id: <E1YNMaf-00041u-Ux@maia.w3.org>
ISSUE-371 (linePadding test): linePadding test needs to apply the background color to the line areas only [TTML 1.0 Test Suite]

http://www.w3.org/AudioVideo/TT/tracker/issues/371

Raised by: Nigel Megitt
On product: TTML 1.0 Test Suite

The linePadding test at https://dvcs.w3.org/hg/ttml/file/56211929569d/ttml-ww-profiles/testsuite/linePadding/linePadding1.ttml specifies tts:backgroundColor on the region. This can never demonstrate line padding in action because the background color of the line areas is indistinguishable from that of the region.

Also, the semantics of the ebutts:linePadding style attribute apply when it is applied to body, div or p via a style element.

I suggest applying the background color using a <span> inside each <p> and the linePadding attribute using a style on the <p>, for example:

<layout>
   <region xml:id="area1" tts:origin="20% 70%" tts:extent="60% 20%" tts:displayAlign="center" tts:textAlign="start" tts:color="white"/>
   <region xml:id="area2" tts:origin="20% 10%" tts:extent="60% 20%" tts:displayAlign="center" tts:textAlign="center" tts:color="white"/>
</layout>
<styling>
   <style xml:id="blackBackground" tts:backgroundColor="black"/>
   <style xml:id="greenBackground" tts:backgroundColor="green"/>
   <style xml:id="withLinePadding" ebutts:linePadding="0.5c"/>
</styling>

...

<p region="area1" begin="1s" end="9s">
   <span style="greenBackground">
Some centered text on two lines<br/>without padding.
   </span>
</p>
<p region="area2" style="withLinePadding" begin="1s" end="9s">
   <span style="blackBackground">
Some centered text on two lines<br/>with padding.
   </span>
</p>
Received on Monday, 16 February 2015 14:24:03 UTC

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