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

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 UTC