[mediaqueries] two syntax items

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".

Thanks,
 -WBE

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