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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 18 Oct 2010 09:39:40 -0700
Message-ID: <AANLkTikg+25m9xQNeEA08-QxeOec8NJ5-z9EcCg4ra9U@mail.gmail.com>
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;
}

~TJ
Received on Monday, 18 October 2010 09:39:40 UTC

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