The RGB values returned for the palevioletred and mediumpurple web colours in Safari Version 5.0.2 (6533.18.5) and Chrome 6.0.472.63 are incorrect. Given the colours are incorrect in both browsers I'm assuming this is a WebKit issue. The following code can be used to illustrate the difference when compared to http://www.w3.org/TR/css3-color/#svg-color. getWebColor = function(colour) { i = document.createElement("i") i.title = "Example" document.body.appendChild(i) i.style.color = colour document.defaultView.getComputedStyle(i, "").getPropertyValue("color") } getWebColor('mediumpurple'); getWebColor('palevioletred');
I can confirm, and it also documented for instance here: http://code.google.com/p/doctype/wiki/MediumpurpleCSSColor However I do not know whether it was done intentional. Cheers, Rob.
Created attachment 85400 [details] Patch Likely a type in the original import, in both cases the fix is to change 8->B.
Err, type->typo.
Comment on attachment 85400 [details] Patch I'll give a tentative r+, but please make sure that this matches other browsers.
Of course. I verified on Mozilla (3.6) and IE (9) and they both match the specification. I could check older versions of IE and Mozilla if you'd like me to.
Comment on attachment 85400 [details] Patch Probably not worth checking old versions in this case.
Comment on attachment 85400 [details] Patch Clearing flags on attachment: 85400 Committed r80823: <http://trac.webkit.org/changeset/80823>
All reviewed patches have been landed. Closing bug.