Bug 18588
| Summary: | webkit fails to parse css color:rgb() | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Anantha Keesara <anantha> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ian |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| URL: | http://www.hixie.ch/tests/adhoc/css/parsing/006.html | ||
Anantha Keesara
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Dave Hyatt
I think this test is invalid.
Eric Seidel (no email)
CCing ian for comment.
Anatoli Papirovski
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
*** This bug has been marked as a duplicate of 18355 ***