Skip to content

Commit

Permalink
Fixes for IE style ordering issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Feb 5, 2016
1 parent b5ba9a8 commit 162f81e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/standard/styling.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
var cssText = styleTransformer.elementStyles(this);
// do we really need to output shimmed styles
var needsStatic = this._needsStaticStyles(this._styles);
cssText = needsStatic ? cssText : '';
// NOTE: IE has css style ordering issues unless there's at least a
// space in the stylesheet.
cssText = needsStatic ? cssText : ' ';
// under shady dom we always output a shimmed style (which may be
// empty) so that other dynamic stylesheets can always be placed
// after the element's main stylesheet.
Expand Down
2 changes: 1 addition & 1 deletion src/standard/x-styling.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
_needsStaticStyles: function(styles) {
var needsStatic;
for (var i=0, l=styles.length, css; i < l; i++) {
css = styles[i].textContent;
css = styleUtil.parser._clean(styles[i].textContent);
needsStatic = needsStatic || Boolean(css);
if (css.match(propertyUtils.rx.MIXIN_MATCH) ||
css.match(propertyUtils.rx.VAR_MATCH)) {
Expand Down

0 comments on commit 162f81e

Please sign in to comment.