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

Raised by:
Nigel Megitt
Opened on:
The linePadding test at 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:

<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"/>
<style xml:id="blackBackground" tts:backgroundColor="black"/>
<style xml:id="greenBackground" tts:backgroundColor="green"/>
<style xml:id="withLinePadding" ebutts:linePadding="0.5c"/>


<p region="area1" begin="1s" end="9s">
<span style="greenBackground">
Some centered text on two lines<br/>without padding.
<p region="area2" style="withLinePadding" begin="1s" end="9s">
<span style="blackBackground">
Some centered text on two lines<br/>with padding.

Related Actions Items:
No related actions
Related emails:
  1. {minutes} TTWG Meeting 2015-02-19 (from on 2015-02-19)
  2. {agenda} TTWG Meeting 2015-02-19 (from 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 on 2015-02-16)

Related notes:

See proposed fixed at

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.

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 <>, Nigel Megitt <>, Chairs, Thierry Michel <>, Philippe Le H├ęgaret <>, Atsushi Shimono <>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <>.
$Id: 371.html,v 1.1 2019/11/12 10:07:24 carcone Exp $