[Webkit-unassigned] [Bug 47828] New: style.border color comparison only returns true if the color is in rgb(r, g, b) format
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 18 09:34:27 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=47828
Summary: style.border color comparison only returns true if the
color is in rgb(r, g, b) format
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: http://www.google.co.uk/
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: caner.altinbasak at gmail.com
This bug can be observed in Origyn Web Browser and Google Chrome on linux.
Open any web page. I'll use "http://www.google.co.uk/".
Open javascript console.
>document.getElementById('hplogo').style.border = '1px solid #d3c7a4'
>"1px solid #d3c7a4"
>document.getElementById('hplogo').style.border == '1px solid #d3c7a4'
>false
>document.getElementById('hplogo').style.border == '1px solid rgb(211, 199, 164)'
>true
if "#" format is used for style.border comparison, the comparison always fails. In firefox and opera both "#" format and rgb format works fine.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list