W3C home > Mailing lists > Public > public-css-testsuite@w3.org > June 2010

Microsoft CSS3 media queries testcases

From: L. David Baron <dbaron@dbaron.org>
Date: Fri, 4 Jun 2010 17:01:33 -0700
To: Arron Eicholz <Arron.Eicholz@microsoft.com>
Cc: public-css-testsuite@w3.org
Message-ID: <20100605000133.GA15824@pickering.dbaron.org>
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 GMT

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