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

[mediaqueries] two syntax items

From: Winston <wbe@psr.com>
Date: Mon, 09 Jun 2014 20:22:47 +0000
Message-Id: <201406080017.s580HCP8058761@psr.com> (sfid-20140609_202257_308999_E5059FC3)
To: www-style@w3.org
In regards to Media Queries Level 4, draft 3 (June 2014):

1) Is "()" considered an empty "general expression" whose value is false
   [making "not ()" true], or is it considered a syntax error?

2) Re: The section 3 example "@media (example, all,), speech"

   The <media-query> syntax has no provision for commas in
   subexpressions.  OR is achieved by <media-or>, which uses " or ", not
   comma.  Syntax error handling must already include dealing with
   unbalanced parentheses, so there is no particular reason why the '('
   should be allowed to hide commas, complicating finding the end of the
   current query in a query list.  There might not even be a matching ')'
   later.  The draft currently says:

   "the above media query lists are turned into  not all, speech"

   but perhaps comma should always be a query list separator, in which
   case that would be parsed as a list of four queries: "(example" ,
   "all" , ")", and "speech".  The first and third would be syntax
   errors, leaving the expression to be "all,speech", which is
   equivalent to "all".

Received on Wednesday, 23 July 2014 14:22:04 UTC

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