Computed value of 'border-width: thick': 6px for Opera 11.60, 5px for other browsers

Hello,

I stumbled on an issue which prevents me from making reliable reftests
in a few tests.

When 'border-width: thick' is declared, Opera 11.60 uses a border-width
of 6px.

OTOH, Firefox 8.0, Chrome 15.0.874.121 and Konqueror 4.7.3 uses a
border-width of 5px. (I'll check later IE8, IE9, Hv3 TKHTML and Amaya
11.3)

And there is nothing in the spec which prevents or forces or favors
either value.

{
thin
    A thin border.
medium
    A medium border.
thick
    A thick border.

(...)

The interpretation of the first three values depends on the user agent.
The following relationships must hold, however:

'thin' <='medium' <= 'thick'.
}
8.5.1 Border width
http://www.w3.org/TR/CSS21/box.html#border-width-properties

The same situation could happen with a new browser or a not-so-popular
browser and for 'thin', 'medium' or 'thick' keyword values.

The only solution I see is that all Ian Hickson's tests (starting with
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/background-root-018.htm
) which uses 'thick' as a border-width value would be replaced with
'5px'.

The long-term solution is that CSS3 specify what are the pixel
equivalents to keywords 'thin', 'medium' and 'thick'.

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 Sunday, 11 December 2011 04:04:21 UTC