Style inheritance in TTML1

Hi all,

The following question came up while evaluating a rendering of the
IMSC1 test at [1], which has the following structure:

...
<style xml:id="black_72" tts:color="black"
tts:fontFamily="proportionalSerif" tts:fontSize="72px"
tts:textAlign="center"/>
<style xml:id="white_73" tts:color="white"
tts:fontFamily="proportionalSansSerif" tts:fontSize="73px"
tts:textAlign="right"/>
...
<region xml:id="subtitleArea1" style="black_72" tts:origin="100px
200px" tts:extent="1024px 690px" tts:padding="5px 5px"
tts:opacity="0.85" tts:textAlign="center"
tts:showBackground="whenActive" tts:wrapOption="noWrap"/>
...
<div region="subtitleArea1">
    <p begin="00:00:00:10" end="00:00:00:13"
tts:backgroundColor="#97BF0D" style="white_73" tts:wrapOption="wrap"
tts:fontSize="24px">Start</p>
...
<div>

In which order do white_73 and black_72 get applied to the <p>?

Per Section 8.4.4.2 in TTML1, I think I would conclude that inherited
styles get applied last (and thus <p> is centered) since [implicit
inheritance] is the last rule.

Does that sound right?

Thanks,

-- Pierre

[1] https://dvcs.w3.org/hg/ttml/file/tip/ttml-ww-profiles/testsuite/dece/Solekai023_1920_23_1x1_MaxHdSubtitle_v7_subtitles/track6-frag0-sample1-subs0.ttml

Received on Thursday, 16 July 2015 15:10:10 UTC