From b24f4818c7918a9711c77ff42fb95cbc5aa3a361 Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Mon, 18 Nov 2013 17:23:04 -0800 Subject: [PATCH] Fixes https://github.com/Polymer/polymer/issues/345. Ok now that https://code.google.com/p/chromium/issues/detail?id=247231 is fixed. --- src/ShadowCSS.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/ShadowCSS.js b/src/ShadowCSS.js index 1532c35..1f0d241 100644 --- a/src/ShadowCSS.js +++ b/src/ShadowCSS.js @@ -503,14 +503,7 @@ var ShadowCSS = { polyfillHost); }, propertiesFromRule: function(rule) { - var properties = rule.style.cssText; - // TODO(sorvell): Chrome cssom incorrectly removes quotes from the content - // property. (https://code.google.com/p/chromium/issues/detail?id=247231) - if (rule.style.content && !rule.style.content.match(/['"]+/)) { - properties = 'content: \'' + rule.style.content + '\';\n' + - rule.style.cssText.replace(/content:[^;]*;/g, ''); - } - return properties; + return rule.style.cssText; } };