W3C home > Mailing lists > Public > www-style@w3.org > July 2011

Re: CSS Timed Text Module

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sun, 24 Jul 2011 15:01:42 -0700
Message-ID: <CAAWBYDDDoHwhrVv_+iK_LrAKoqhmrVGa7hjJPH2=AxnXj=rpEQ@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: CSS WG <www-style@w3.org>, Ian Hickson <ian@hixie.ch>
On Sun, Jul 24, 2011 at 2:28 PM, Anne van Kesteren <annevk@opera.com> wrote:
> HTML has a section where it defines various features for styling captioning.
> It proposes a ::cue pseudo-element, ::cue(selector) pseudo-lement, :past
> pseudo-class, and a :future pseudo-class.
> http://www.w3.org/TR/2011/WD-html5-20110525/rendering.html#timed-text-tracks-0
> http://www.whatwg.org/html#timed-text-tracks-0
> At some point the CSS WG should probably "own" these features and issue a
> draft for them.

:past and :future are pretty easy and well-named.  It can be used for
things other than WebVTT that have a time-dependence.

::cue() is more interesting.  The captions on a video are basically an
embedded document, similar to <iframe>, that are not normally
accessible to the outer page's selectors.  ::cue() pokes a hole in
that, allowing the outer document to select and style the elements in
the embedded document.  This is potentially applicable more widely;
I'm not sure we'd *want* it to, though. ^_^

::cue is just a shortcut for ::cue(), which is defined as selecting
the root elements.  (WebVTT documents usually have many root elements
- each cue is one.)

Received on Sunday, 24 July 2011 22:02:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:02 UTC