W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2010

[whatwg] rendering WebSRT cue parts in use for subtitling songs

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Mon, 25 Oct 2010 14:34:52 +1100
Message-ID: <AANLkTikxz63qoxX+M+LpLgjW94zEJ0+B6rtCx1Lm-QLN@mail.gmail.com>
On Tue, Oct 19, 2010 at 3:39 AM, Tab Atkins Jr. <jackalmage at gmail.com> wrote:
> On Sat, Oct 16, 2010 at 4:18 PM, Silvia Pfeiffer
> <silviapfeiffer1 at gmail.com> wrote:
>> I would expect a style of rendering where all words are first
>> displayed in ordinary display and e.g. painted in a different color as
>> the time reaches them. Something like:
>>
>> ::cue {
>> ?color: black;
>> }
>>
>> // this is in-valid as per spec right now
>> ::cue timestamp {
>> ?color: red;
>> }
>>
>> But FAIK we don't currently have a means to address the
>> timestamp-activated parts within a cue through CSS. How should that be
>> done?
>
> http://www.whatwg.org/specs/web-apps/current-work/complete/rendering.html#the-'::cue-part'-pseudo-element
>
> ::cue {
> ?color: black;
> }
>
> ::cue-part(past) {
> ?color: red;
> }

Thanks, I had totally forgotten about this - I think it indeed does the trick.

Silvia.
Received on Sunday, 24 October 2010 20:34:52 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:01 UTC