W3C home > Mailing lists > Public > public-css-testsuite@w3.org > November 2012

[RC6] rgb(50%, ..., ...) or rgb(..., 50%, ...) or rgb(..., ..., 50%): fractional value!

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Mon, 19 Nov 2012 22:23:22 -0500
Message-ID: <00f9d3b22be1c26580dd593ae3cc4606.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Arron Eicholz" <arron.eicholz@microsoft.com>
Cc: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>
Arron,

A number of tests are testing color with 50% as one of the 3 values in a
rgb( ,  , ) declaration. Now, if 100% is FF or 255, then what is 50%?
Firefox 16.0.2 and Opera 12.10 resolve this as 128 and 80 respectively
but Chrome resolves this as 7F (or 127)!

This is simply because 255 / 2 == 127.5

So, I will re-visit a bunch of tests like

background-color, border-bottom-color, border-left-color,
border-right-color, border-top-color, color, outline-color
with the suffixed numbers 052, 053, 073, 074, 093, 094 and possibly more.

An human would not and could not see such tiny color difference but this
issue would most likely have been reported in an automated testing,
checking of comparing screenshots.

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, 20 November 2012 03:23:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 20 November 2012 03:23:54 GMT