W3C home > Mailing lists > Public > public-css-testsuite@w3.org > March 2011

[RC5, pre-RC6] font-systemfont-rule-004 incorrect

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Sun, 20 Mar 2011 14:19:09 -0700
Message-ID: <1f970abe0899f27b82f2da1cd798b29b.squirrel@cp3.shieldhost.com>
To: "Arron Eicholz" <Arron.Eicholz@microsoft.com>
Cc: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>
Arron,

http://test.csswg.org/suites/css2.1/20110111/html4/font-systemfont-rule-004.htm
(RC5)

http://test.csswg.org/suites/css2.1/nightly-unstable/html4/font-systemfont-rule-004.htm

http://test.csswg.org/source/contributors/microsoft/submitted/Chapter_15/font-systemfont-rule-004.htm

http://test.csswg.org/source/contributors/microsoft/submitted/Chapter_15/font-systemfont-rule-004.xht

The testcase has everything to do with section 6.4.3 Calculating a
selector's specificity (id is b and wins over class which is c) and
nothing with font shorthand not listing explicitly subproperties.
As coded, the testcase currently is not testing what it originally
intended to test.

Coming from section 6.4.3:

"
# count the number of ID attributes in the selector (= b)
# count the number of other attributes and pseudo-classes in the
selector (= c)
(...)
 li.red.level  {}  /* a=0 b=0 c=2 d=1 -> specificity = 0,0,2,1 */
 #x34y         {}  /* a=0 b=1 c=0 d=0 -> specificity = 0,1,0,0 */
"
http://www.w3.org/TR/CSS21/cascade.html#specificity

Test demonstration
------------------
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/font-systemfont-rule-004-specificity.htm


Proposed replacement
--------------------
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/font-systemfont-rule-004.htm

Gérard
-- 
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

CSS 2.1 test suite (RC5; January 11th 2011):
http://test.csswg.org/suites/css2.1/20110111/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/
Received on Sunday, 20 March 2011 21:19:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 20 March 2011 21:19:51 GMT