[nightly-unstable] html-precedence-005 is incorrect

Hello,

[nightly-unstable]
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/html-precedence-005.htm

User stylesheet has:

.green { color: green; }


<p><font color="red" class="green">This text should be green.</font></p>

color="red" is supposed to be converted into an author rule with a
specificity of 0 since

"
these [non-CSS presentational hints] attributes are translated to the
corresponding CSS rules with specificity equal to 0, and are treated as
if they were inserted at the start of the author style sheet.
"
6.4.4 Precedence of non-CSS presentational hints
http://www.w3.org/TR/CSS21/cascade.html#preshint

And non-!important author rules wins over (has precedence over)
non-!important user rules :

"
In ascending order of precedence:

2.  user normal declarations
3.  author normal declarations
"
6.4.1 Cascading order
http://www.w3.org/TR/CSS21/cascade.html#cascading-order

So, importance and origin decide for that sentence regardless of
specificity of selector.

So, that sentence should be red, not green.

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

CSS 2.1 Test suite RC6, March 23rd 2011:
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

CSS 2.1 test suite harness:
http://test.csswg.org/harness/

Contributing to to CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html

Received on Tuesday, 13 December 2011 22:16:35 UTC