CSS3 Color Module specification says: "The format of an RGB value in the functional notation is 'rgb(' followed by a comma-separated list of three numerical values (either three integer values or three percentage values) followed by ')'." and "The format of an RGBA value in the functional notation is 'rgba(' followed by a comma-separated list of three numerical values (either three integer values or three percentage values), followed by an <alphavalue>, followed by ')'." Mixing of integers with percentages is disallowed. Two tests from css3-color Conformance Test Suite: http://www.w3.org/Style/CSS/Test/CSS3/Color/20070927/ check these cases: http://www.w3.org/Style/CSS/Test/CSS3/Color/20070927/html4/t040202-rgba-func-no-mixed-f.htm http://www.w3.org/Style/CSS/Test/CSS3/Color/20070927/html4/t040201-rgb-func-no-mixed-f.htm
Created attachment 20398 [details] no mixed rgb() values
Created attachment 20399 [details] no mixed rgba() values
Created attachment 20889 [details] patch This is valid both per css 2.1 and css 3 spec, as far as I can tell. Also, this is a duplicate of bug 18588.
Actually, meant to say that 18588 is a duplicate of this one.
Comment on attachment 20889 [details] patch Looks good to me. r=me
*** Bug 18588 has been marked as a duplicate of this bug. ***
Landed as <http://trac.webkit.org/changeset/32689>.
Created attachment 20893 [details] patch for svg test case Forgot to modify one of the test cases and its results...
Comment on attachment 20893 [details] patch for svg test case I should have caught this before landing. r=me