Re: Applying backgroundColor between consecutive spans

On Tue, Dec 20, 2016 at 9:02 PM, Pierre-Anthony Lemieux <pal@sandflow.com>
wrote:

> Hi all,
>
> Given a TTML document where multiple consecutive <span
> tts:backgroundColor="black">s are separated by a newline, is it true
> that:
>
> - the space between consecutive <span>s will not be filled with the
> <span> background color?
>

If you have

<span tts:backgroundColor="red"><span
tts:backgroundColor="green">A</span>&#x0A;<span
tts:backgroundColor="green">B</span></span>

then the display should be


​http://codepen.io/skynavga/pen/gLEzWe


>
> - in order for the space between consecutive <span>s to be filled with
> a background color, the consecutive spans would need to be wrapped in
> a <span> with the appropriate background color?
>

correct; or the whitespace (linefeed) should be wrapped in a span with the
desired background color

http://codepen.io/skynavga/pen/KNERmY


>
> See attached example.
>
> Best,
>
> -- Pierre
>

Received on Wednesday, 21 December 2016 04:34:04 UTC