ISSUE-371: linePadding test needs to apply the background color to the line areas only

linePadding test

linePadding test needs to apply the background color to the line areas only

State:
CLOSED
Product:
TTML IMSC 1.0
Raised by:
Nigel Megitt
Opened on:
2015-02-16
Description:
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>

Related Actions Items:
No related actions
Related emails:
  1. {minutes} TTWG Meeting 2015-02-19 (from nigel.megitt@bbc.co.uk on 2015-02-19)
  2. {agenda} TTWG Meeting 2015-02-19 (from nigel.megitt@bbc.co.uk on 2015-02-18)
  3. ISSUE-371 (linePadding test): linePadding test needs to apply the background color to the line areas only [TTML 1.0 Test Suite] (from sysbot+tracker@w3.org on 2015-02-16)

Related notes:

See proposed fixed at https://dvcs.w3.org/hg/ttml/file/8df29aa13e67/ttml-ww-profiles/testsuite/linePadding/linePadding1.ttml

NOTE: proposed <style> properties were made inline to focus the test on the linePadding attribute.

Pierre-Anthony Lemieux, 17 Feb 2015, 05:11:13

Implemented as suggested in the description.

https://dvcs.w3.org/hg/ttml/rev/58d71f630f01

NOTE: In order for the test to be also compatible with EBU-TT-D, which is a subset of IMSC1 and forbids inline styling on content elements.

Pierre-Anthony Lemieux, 19 Feb 2015, 04:29:30

Display change log ATOM feed


David Singer <singer@apple.com>, Nigel Megitt <nigel.megitt@bbc.co.uk>, Chairs, Thierry Michel <tmichel@w3.org>, Philippe Le H├ęgaret <plh@w3.org>, Atsushi Shimono <atsushi@w3.org>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 371.html,v 1.1 2019/11/12 10:07:24 carcone Exp $