diff --git a/src/lib/style-transformer.html b/src/lib/style-transformer.html index 90733c897d..94775b5589 100644 --- a/src/lib/style-transformer.html +++ b/src/lib/style-transformer.html @@ -311,9 +311,7 @@ }, _transformDocumentSelector: function(selector) { - return selector.match(SCOPE_JUMP) ? - this._transformComplexSelector(selector, SCOPE_DOC_SELECTOR) : - this._transformSimpleSelector(selector.trim(), SCOPE_DOC_SELECTOR); + return this._transformComplexSelector(selector, SCOPE_DOC_SELECTOR); }, // For forward compatibility with ShadowDOM v1 and Polymer 2.x, diff --git a/test/runner.html b/test/runner.html index 3d0b095ea2..a5a6803e73 100644 --- a/test/runner.html +++ b/test/runner.html @@ -98,7 +98,11 @@ 'unit/dir.html', 'unit/dir.html?dom=shadow', 'unit/dir.html?lazyRegister=true&useNativeCSSProperties=true', - 'unit/dir.html?lazyRegister=true&useNativeCSSProperties=true&dom=shadow' + 'unit/dir.html?lazyRegister=true&useNativeCSSProperties=true&dom=shadow', + 'unit/custom-style-transformed.html', + 'unit/custom-style-transformed.html?dom=shadow', + 'unit/custom-style-transformed.html?lazyRegister=true&useNativeCSSProperties=true', + 'unit/custom-style-transformed.html?lazyRegister=true&useNativeCSSProperties=true&dom=shadow' ]; if (window.customElements || document.registerElement) { diff --git a/test/unit/custom-style-transformed.html b/test/unit/custom-style-transformed.html new file mode 100644 index 0000000000..e0b064c580 --- /dev/null +++ b/test/unit/custom-style-transformed.html @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file