diff options
Diffstat (limited to 'WebCore/inspector/front-end/Color.js')
-rw-r--r-- | WebCore/inspector/front-end/Color.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/WebCore/inspector/front-end/Color.js b/WebCore/inspector/front-end/Color.js index 11d6bad..5e7314c 100644 --- a/WebCore/inspector/front-end/Color.js +++ b/WebCore/inspector/front-end/Color.js @@ -143,6 +143,8 @@ WebInspector.Color.prototype = { format = this.format; switch (format) { + case "original": + return this.value; case "rgb": return "rgb(" + this.rgb.join(", ") + ")"; case "rgba": @@ -324,7 +326,7 @@ WebInspector.Color.prototype = { throw "unknown color name"; } else if (match[4]) { // hsl this.format = "hsl"; - var hsl = match[4].replace(/%g/, "").split(/\s*,\s*/); + var hsl = match[4].replace(/%/g, "").split(/\s*,\s*/); this.hsl = hsl; this.rgb = this._hslToRGB(hsl); this.hex = this._rgbToHex(this.rgb); |