RE: Live WebVTT Validator update

Thanks for confirming its valid. Putting it in a NOTE block doesn’t stop the validator from complaining though.

I know where ::cue is defined, I'm just asking if the group is working with the CSS working group to extend their syntax so that it becomes legal CSS.

Cheers,
Sean.

-----Original Message-----
From: Simon Pieters [mailto:simonp@opera.com] 
Sent: 22 May 2013 12:44
To: Anne van Kesteren; public-texttracks@w3.org; Sean Hayes
Subject: Re: Live WebVTT Validator update

On Wed, 22 May 2013 12:48:52 +0200, Sean Hayes <Sean.Hayes@microsoft.com>  
wrote:

>
> Hi Anne, and other WebVTT experts,
>
> I'm experimenting with a TTML to WebVTT converter and just want to check  
> a few details with you all.
>
> The validator claims that:
>
> WEBVTT { generated-from : TTML; }
>
> /* ============ cue style here =========
> -- styles here ignored by webvtt
> */
> *::cue(c.style25)
> {
>     font-family: "Segoe UI Light", Sans-Serif;
>     color: #303030;
>     font-size: 36px;
>     line-height: 44px;
>     margin: 0;
> }
> /* cues here ignored by css
>
> 00:00:00.101 --> 00:00:03.000
> <c.style22><c.style25><c.style26><c.style27> This is an  
> <c.style28>SDP-US</c> TTML file. </c></c></c></c>
>
> NOTE
> end of file   */
>
> Is incorrect, specifically:
>
> 1.Line 4, column 1: Timestamp must start with a character in the range  
> 0-9.
> 2.Line 20, column 1: Timestamp must start with a character in the range  
> 0-9.
>
> My understanding of the parser is that content is ignored between the  
> header up to the first timestamp line, is that not correct?

That is correct. However, that doesn't mean that it is allowed to put  
random stuff there.

> I want to use that area for the generated style-sheet,  rather than have  
> to put it in a separate file (i.e. the generated file serves both as  
> cues and its own style).

Put it in a NOTE comment block.

> Also it seems that *::cue(c.style25) is not a legal CSS 3 selector,  
> since the syntax for functions in pseudo classes only admits an  
> expression as argument, not a selector. Is that correct?

::cue() is defined in  
http://dev.w3.org/html5/webvtt/#the-cue-pseudo-element


The given example is valid.

-- 
Simon Pieters
Opera Software

Received on Wednesday, 22 May 2013 11:54:34 UTC