ISSUE-372: multiRowAlign test applies style via region
multiRowAlign test
multiRowAlign test applies style via region
- State:
- CLOSED
- Product:
- TTML 1.0 Test Suite
- Raised by:
- Nigel Megitt
- Opened on:
- 2015-02-16
- Description:
- The multiRowAlign test at https://dvcs.w3.org/hg/ttml/file/56211929569d/ttml-ww-profiles/testsuite/multiRowAlign/multiRowAlign1.ttml applies the ebutts:multiRowAlign attribute directly onto a region, however the semantics of that attribute allow it only to be applied using a style element.
I suggest applying it using a style element and reference, for example:
...
<layout>
<region xml:id="area1" tts:origin="20% 70%" tts:extent="60% 20%" tts:backgroundColor="green" tts:displayAlign="center" tts:color="white"/>
<region xml:id="area2" tts:origin="20% 10%" tts:extent="60% 20%" tts:backgroundColor="black" tts:displayAlign="center" tts:color="white"/>
</layout>
<styling>
<style xml:id="startEnd" tts:textAlign="start" ebutts:multiRowAlign="end"/>
<style xml:id="centerStart" tts:textAlign="center" ebutts:multiRowAlign="start"/>
</styling>
...
<p region="area1" style="startEnd" begin="1s" end="9s">
Beware the Jabberwock, my son!<br/>The jaws that bite, the claws that catch!
</p>
<p region="area2" style="centerStart" begin="1s" end="9s">
Beware the Jubjub bird, and shun<br/>The frumious Bandersnatch!
</p>
...
- Related Actions Items:
- No related actions
- Related emails:
- {minutes} TTWG Meeting 2015-02-19 (from nigel.megitt@bbc.co.uk on 2015-02-19)
- {agenda} TTWG Meeting 2015-02-19 (from nigel.megitt@bbc.co.uk on 2015-02-18)
- ISSUE-372 (multiRowAlign test): multiRowAlign test applies style via region [TTML 1.0 Test Suite] (from sysbot+tracker@w3.org on 2015-02-16)
Related notes:
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.
Display change log