W3C home > Mailing lists > Public > www-style@w3.org > November 2007

Re: Parsing media queries

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 14 Nov 2007 08:40:28 -0500
Message-ID: <473AFACC.9090404@inkedblade.net>
To: Henri Sivonen <hsivonen@iki.fi>
CC: W3C Style List <www-style@w3.org>

Henri Sivonen wrote:
> 
> I intend to implement media query parsing in isolation of the rest of 
> CSS because HTML 5 reuses the media query syntax in attribute values.
> 
> A couple of comments about the spec:
> It seems to me that whitespace is allowed around tokens. I don't see 
> where this is specified. The spec doesn't make a normative reference to 
> the CSS3 Syntax module.
> 
> It isn't clear how the parser should recover when a query in a list 
> fails to parse. Should the parser look for a comma?

See http://lists.w3.org/Archives/Public/www-style/2007Nov/0119.html
Split on commas and ignore sections you don't recognize.

~fantasai
Received on Wednesday, 14 November 2007 13:40:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:56 GMT