W3C home > Mailing lists > Public > www-style@w3.org > October 2009

media queries syntax

From: Yves Lafon <ylafon@w3.org>
Date: Thu, 15 Oct 2009 05:50:24 -0400 (EDT)
To: www-style@w3.org
Message-ID: <alpine.DEB.1.10.0910150544280.15569@wnl.j3.bet>
Hi,
I am looking at the media-queries CR document [1], form a CSS Validator 
standpoint, and I am wondering why the syntax of expression is
'(' .. ')' instead of using a function name like 'feature(' ... ')'.

Changing the parser in one place, for handling media-queries is one thing, 
but adding support for '('..')' introduce lots of new error handling in 
other part of the spec for errors like
color: rgb (1,2,3); (instead of rgb(1,2,3);)

plus 'feature(...)' seems more readable than '(..)' (but that's subjective 
:) ).


[1] http://www.w3.org/TR/2009/CR-css3-mediaqueries-20090915/

-- 
Baroula que barouleras, au tiéu toujou t'entourneras.

         ~~Yves
Received on Thursday, 15 October 2009 09:50:28 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:40 UTC