mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Fixes for IE style ordering issue.
This commit is contained in:
parent
b5ba9a8219
commit
162f81ea0d
@ -47,7 +47,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
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.
|
||||
|
@ -32,7 +32,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
_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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user