Microsoft CSS3 media queries testcases

Hi Arron,

I was looking at the testcases in
http://samples.msdn.microsoft.com/ietestcenter/#css3mediaqueries
that Firefox is marked as failing.  Since I suspect Microsoft either
has or is planning to contribute these to CSS test suites, I'm
cc:ing public-css-testsuite as well.  (If there's a better contact
for these tests, feel free to let me know.  I'm guessing that if
it's not you, you probably know the right person, though.)

I think the first three (of the five) tests there that Firefox is
marked as failing, Firefox is actually correct.  In particular:

These tests:
http://samples.msdn.microsoft.com/ietestcenter/css3/mediaqueries/screen_and_%28min-height%29_negative.htm
http://samples.msdn.microsoft.com/ietestcenter/css3/mediaqueries/screen_and_%28min-width%29.htm
are incorrect because the spec says:
  # A specified <length> cannot be negative. 
in both http://www.w3.org/TR/css3-mediaqueries/#width and
http://www.w3.org/TR/css3-mediaqueries/#height .  Therefore the
queries are in error and should be handled using the rules for
incorrect queries.

This test:
http://samples.msdn.microsoft.com/ietestcenter/css3/mediaqueries/only_screen_and_%28min-resolution%29.htm
is incorrect because the spec says:
  # The <resolution> value is a positive <number> immediately
  # followed by a unit identifier (‘dpi’ or ‘dpcm’). 
in http://www.w3.org/TR/css3-mediaqueries/#values , and therefore
0dpi is not a valid <resolution>.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Saturday, 5 June 2010 00:02:03 UTC