New Media Queries tests

I've made a set of tests for Media Queries:

    http://www.w3.org/Style/Examples/014/

Nearly all of them are "device-independent," in the sense that the 
actual device characteristics don't matter. They do all require a color 
device, though; and one or two require a 96dpi device.

Of course, not everything in the specification can be tested that way. 
In particular the tests don't check that the UA reports the true device 
characteristics. And some other statements in the specification, such 
as "A ‘resolution’ query never matches a device with non-square 
pixels," cannot be tested either without an actual device with 
non-square pixels...

Opera 9.64 (under Debian Linux 5.0 "Lenny") passes most tests but fails 
on the following:

http://www.w3.org/Style/Examples/014/color03.xhtml
http://www.w3.org/Style/Examples/014/color04.xhtml
http://www.w3.org/Style/Examples/014/device-height03.xhtml
http://www.w3.org/Style/Examples/014/device-width03.xhtml
http://www.w3.org/Style/Examples/014/error04.xhtml
http://www.w3.org/Style/Examples/014/error06.xhtml
http://www.w3.org/Style/Examples/014/error07.xhtml
http://www.w3.org/Style/Examples/014/error15.xhtml
http://www.w3.org/Style/Examples/014/error16.xhtml
http://www.w3.org/Style/Examples/014/error19.xhtml
http://www.w3.org/Style/Examples/014/error20.xhtml
http://www.w3.org/Style/Examples/014/grid05.xhtml
http://www.w3.org/Style/Examples/014/height03.xhtml
http://www.w3.org/Style/Examples/014/monochrome03.xhtml
http://www.w3.org/Style/Examples/014/orientation01.xhtml
http://www.w3.org/Style/Examples/014/orientation04.xhtml
http://www.w3.org/Style/Examples/014/syntax05.xhtml
http://www.w3.org/Style/Examples/014/values02.xhtml
http://www.w3.org/Style/Examples/014/values05.xhtml
http://www.w3.org/Style/Examples/014/width03.xhtml

It seems Opera's bug is treating invalid queries as false instead of 
ignoring them. E.g., '(min-width: -1px)' is true in Opera but should be 
ignored according to the specification.

Of course, there may be errors in the tests as well...



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, 4 May 2009 16:32:54 UTC