Bug 18588 - webkit fails to parse css color:rgb()
Summary: webkit fails to parse css color:rgb()
Status: RESOLVED DUPLICATE of bug 18355
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://www.hixie.ch/tests/adhoc/css/p...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-18 11:15 PDT by Anantha Keesara
Modified: 2008-04-29 09:19 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anantha Keesara 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
Comment 1 Dave Hyatt 2008-04-18 12:26:00 PDT
I think this test is invalid.
Comment 2 Eric Seidel (no email) 2008-04-18 12:32:50 PDT
CCing ian for comment.
Comment 3 Anatoli Papirovski 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 ')'."
Comment 4 Darin Adler 2008-04-29 09:19:27 PDT

*** This bug has been marked as a duplicate of 18355 ***