diff --git a/src/lib/style-transformer.html b/src/lib/style-transformer.html index 90733c897d..caf8ddd710 100644 --- a/src/lib/style-transformer.html +++ b/src/lib/style-transformer.html @@ -311,7 +311,7 @@ }, _transformDocumentSelector: function(selector) { - return selector.match(SCOPE_JUMP) ? + return (selector.match(SCOPE_JUMP) || selector.match(SIMPLE_SELECTOR_SEP) )? this._transformComplexSelector(selector, SCOPE_DOC_SELECTOR) : this._transformSimpleSelector(selector.trim(), SCOPE_DOC_SELECTOR); }, 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..88de82cd79 --- /dev/null +++ b/test/unit/custom-style-transformed.html @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file