RESOLVED FIXED 46658
The web colours palevioletred and mediumpurple are incorrect
https://bugs.webkit.org/show_bug.cgi?id=46658
Summary The web colours palevioletred and mediumpurple are incorrect
Paul Gillard
Reported 2010-09-27 14:59:30 PDT
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');
Attachments
Patch (14.72 KB, patch)
2011-03-10 15:58 PST, Emil A Eklund
no flags
Rob Buis
Comment 1 2010-10-16 09:46:43 PDT
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.
Emil A Eklund
Comment 2 2011-03-10 15:58:30 PST
Created attachment 85400 [details] Patch Likely a type in the original import, in both cases the fix is to change 8->B.
Emil A Eklund
Comment 3 2011-03-10 16:05:15 PST
Err, type->typo.
Alexey Proskuryakov
Comment 4 2011-03-10 16:10:56 PST
Comment on attachment 85400 [details] Patch I'll give a tentative r+, but please make sure that this matches other browsers.
Emil A Eklund
Comment 5 2011-03-10 16:27:22 PST
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.
Alexey Proskuryakov
Comment 6 2011-03-10 16:34:14 PST
Comment on attachment 85400 [details] Patch Probably not worth checking old versions in this case.
WebKit Commit Bot
Comment 7 2011-03-10 23:38:26 PST
Comment on attachment 85400 [details] Patch Clearing flags on attachment: 85400 Committed r80823: <http://trac.webkit.org/changeset/80823>
WebKit Commit Bot
Comment 8 2011-03-10 23:38:29 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.