RESOLVED DUPLICATE of bug 18355 18588
webkit fails to parse css color:rgb()
https://bugs.webkit.org/show_bug.cgi?id=18588
Summary webkit fails to parse css color:rgb()
Anantha Keesara
Reported 2008-04-18 11:15:49 PDT
Steps: Go to http://www.hixie.ch/tests/adhoc/css/parsing/006.html Issue: webkit fails to parse rgb() : .test { color: green; color: rgb(255, 1%, 1); } Other browsers: IE7 : not ok FF3 beta : ok Safari 3.1 : not ok Opera 9.24 Build 8816 : ok Nightly tested: r31446
Attachments
Dave Hyatt
Comment 1 2008-04-18 12:26:00 PDT
I think this test is invalid.
Eric Seidel (no email)
Comment 2 2008-04-18 12:32:50 PDT
CCing ian for comment.
Anatoli Papirovski
Comment 3 2008-04-21 22:05:05 PDT
It's not invalid, the values in RGB have to either all be percentage or all be normal... combinations of the two are not allowed. Webkit still parses the rgb(255, 1%, 1) and thus displays red instead of green. From W3C CSS3 spec (and it's the same in CSS 2.1): "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 ')'."
Darin Adler
Comment 4 2008-04-29 09:19:27 PDT
*** This bug has been marked as a duplicate of 18355 ***
Note You need to log in before you can comment on or make changes to this bug.