Index: third_party/WebKit/Source/devtools/front_end/common/Color.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/common/Color.js b/third_party/WebKit/Source/devtools/front_end/common/Color.js |
index 9f8d9c40039bb7ae55ad60a517429e2ad34473cc..0de5370040f2a788018fa6af7b86aa1e450bdb7a 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/common/Color.js |
+++ b/third_party/WebKit/Source/devtools/front_end/common/Color.js |
@@ -80,7 +80,7 @@ WebInspector.Color.parse = function(text) |
var match = value.match(simple); |
if (match) { |
if (match[1]) { // hex |
- var hex = match[1].toUpperCase(); |
+ var hex = match[1].toLowerCase(); |
var format; |
if (hex.length === 3) { |
format = WebInspector.Color.Format.ShortHEX; |
@@ -327,11 +327,11 @@ WebInspector.Color.prototype = { |
case WebInspector.Color.Format.HEX: |
if (this.hasAlpha()) |
return null; |
- return String.sprintf("#%s%s%s", toHexValue(this._rgba[0]), toHexValue(this._rgba[1]), toHexValue(this._rgba[2])).toUpperCase(); |
+ return String.sprintf("#%s%s%s", toHexValue(this._rgba[0]), toHexValue(this._rgba[1]), toHexValue(this._rgba[2])).toLowerCase();; |
case WebInspector.Color.Format.ShortHEX: |
if (!this.canBeShortHex()) |
return null; |
- return String.sprintf("#%s%s%s", toShortHexValue(this._rgba[0]), toShortHexValue(this._rgba[1]), toShortHexValue(this._rgba[2])).toUpperCase(); |
+ return String.sprintf("#%s%s%s", toShortHexValue(this._rgba[0]), toShortHexValue(this._rgba[1]), toShortHexValue(this._rgba[2])).toLowerCase();; |
case WebInspector.Color.Format.Nickname: |
return this.nickname(); |
} |