W3C home > Mailing lists > Public > public-css-testsuite@w3.org > November 2005

Re: Media Queries Test Suite Generator

From: Bert Bos <bert@w3.org>
Date: Mon, 21 Nov 2005 11:50:43 +0100
To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Cc: public-css-testsuite@w3.org, Anne van Kesteren <annevk@opera.com>
Message-Id: <200511211150.43718.bert@w3.org>

On Sunday 20 November 2005 04:29, Lachlan Hunt wrote:

> http://lachy.id.au/dev/css/tests/css3-mediaqueries/special/generator

> Let me know if you find any bugs.

Nice!

One bug:

The tests include

    ... and (width) {...}

which is fine, but they also include

    ... and (max-width) {...}

The former is defined, it means the same as '(min-width: 1)', but the 
latter is not legal, because 'max-width' isn't a media feature.

It is OK to include the test, but it can never match any UA. Expressions 
with unknown media features always fail.



And some feature requests:

The tests don't test the keywords 'not' and 'only, e.g.:

    @media not screen {...}
    @media not screen and (monochrome) {...}
    @media only screen {...]

They also don't test the comma (,):

    @media ignore-this, screen {...}
    @media screen, print {...}
    @media screen and (min-width: 61), screen and (max-width: 59) {...}



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Monday, 21 November 2005 10:51:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:51:54 GMT