Skip to content

Commit

Permalink
Quick and dirty fix for polymer issue #1668
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Kaske committed Jun 8, 2015
1 parent abd6f24 commit 8f26767
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/custom-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@
}
if (!nativeShadow) {
Polymer.StyleTransformer.rootRule(rule);

var ruleParts = rule.selector.split(',');
for (var i = 0, li = ruleParts.length; i < li; ++i) {
ruleParts[i] = ruleParts[i].replace(/(:?:before|:?:after)(:not\(.+\))+/, '$2$1');
}
rule.selector = ruleParts.join(',');
}
}
);
Expand All @@ -134,7 +140,6 @@
styleDefaults.applyCss(cssText);
}
}

});

})();
Expand Down

0 comments on commit 8f26767

Please sign in to comment.