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

Silvia Pfeiffer silviapfeiffer1 at gmail.com
Sun Oct 24 20:34:52 PDT 2010


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.



More information about the whatwg mailing list