diff --git a/src/lib/style-properties.html b/src/lib/style-properties.html index 2aee84081f..69b5d571ab 100644 --- a/src/lib/style-properties.html +++ b/src/lib/style-properties.html @@ -194,7 +194,7 @@ self.decorateRule(rule); } if (element && rule.propertyInfo.properties && - matchesSelector.call(element, rule.selector)) { + matchesSelector.call(element, rule.parsedSelector)) { self.collectProperties(rule, props); // produce numeric key for these matches for lookup addToBitMask(i, o); diff --git a/src/lib/style-util.html b/src/lib/style-util.html index 8f3e829a4c..c59d869536 100644 --- a/src/lib/style-util.html +++ b/src/lib/style-util.html @@ -48,7 +48,7 @@ }, forEachStyleRule: function(node, callback) { - var s = node.selector; + var s = node.parsedSelector; var skipRules = false; if (node.type === this.ruleTypes.STYLE_RULE) { callback(node); diff --git a/test/smoke/bad-style-prop.html b/test/smoke/bad-style-prop.html new file mode 100644 index 0000000000..3e0d0be7b3 --- /dev/null +++ b/test/smoke/bad-style-prop.html @@ -0,0 +1,66 @@ + + + + + annotations + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +