diff --git a/src/lib/style-properties.html b/src/lib/style-properties.html index 97a3f9aad6..65321f3d24 100644 --- a/src/lib/style-properties.html +++ b/src/lib/style-properties.html @@ -20,6 +20,7 @@ var matchesSelector = Polymer.DomApi.matchesSelector; var styleUtil = Polymer.StyleUtil; var styleTransformer = Polymer.StyleTransformer; + var IS_IE = navigator.userAgent.match('Trident'); var settings = Polymer.Settings; @@ -493,6 +494,10 @@ } element._customStyle = style; } + // @media rules may be stale in IE 10 and 11 + if (IS_IE) { + style.textContent = style.textContent; + } return style; }, diff --git a/test/smoke/stale-ie-cache.html b/test/smoke/stale-ie-cache.html new file mode 100644 index 0000000000..06bf90c7d8 --- /dev/null +++ b/test/smoke/stale-ie-cache.html @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + +

The box should match the background color

+ + + + +