diff --git a/common/modules/styles.jsm b/common/modules/styles.jsm index 644b5a5a..91864533 100644 --- a/common/modules/styles.jsm +++ b/common/modules/styles.jsm @@ -331,9 +331,12 @@ var Styles = Module("Styles", { propertyIter: function (str, always) { let i = 0; - for (let match in this.propertyPattern.iterate(str)) - if (always && !i++ || match[0] && match.value) + for (let match in this.propertyPattern.iterate(str)) { + if (match.value || always && match.name || match.wholeMatch === match.preSpace && always && !i++) yield match; + if (!/;/.test(match.postSpace)) + break; + } }, propertyPattern: util.regexp(