2 issues with content-attr-002 [nightly-unstable]

Hello,

[nightly-unstable]
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/content-attr-002.htm

1- Usually, <link>s are not displayed but, when they do, the default
user agent stylesheet could be making them use the default color for
unvisited <a>. Firefox 12.0 colorize the <link>s in the test with blue;
other browsers (Chrome 18, Opera 11.62, Konqueror 4.8.2) use black
color. Another issue is that, once the reftest is loaded, normally the
4th link in the test should become a visited link, therefore using the
assigned color for :visited links (usually purple-ish color).

2- If the testing browser uses an additional <link> for linking to an
add-on or extension - and this is my case when I use Chrome - , then
this extra <link> situation can not be predicted by the reftest.

Both difficulties make it impossible to do a reliable, trustworthy reftest.

Suggested modification to the code
----------------------------------

line 14  link[rel="stylesheet"]:before { color: blue; content: 'The test
has '; }
line 15  link[rel="stylesheet"]:after { color: blue; content:
attr(media); }

Eg:

http://www.gtalbot.org/BrowserBugsSection/css21testsuite/content-attr-002-GT.htm

http://www.gtalbot.org/BrowserBugsSection/css21testsuite/content-attr-002-GT.xht

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, 1 May 2012 22:13:52 UTC