diff --git a/src/lib/style-transformer.html b/src/lib/style-transformer.html index 605cabb5d0..74adf086f4 100644 --- a/src/lib/style-transformer.html +++ b/src/lib/style-transformer.html @@ -175,6 +175,7 @@ var stop = false; var hostContext = false; var self = this; + selector = selector.trim(); selector = selector.replace(CONTENT_START, HOST + ' $1'); selector = selector.replace(SIMPLE_SELECTOR_SEP, function(m, c, s) { if (!stop) { diff --git a/test/unit/styling-scoped-elements.html b/test/unit/styling-scoped-elements.html index 14eca30b81..0b291139a2 100644 --- a/test/unit/styling-scoped-elements.html +++ b/test/unit/styling-scoped-elements.html @@ -440,8 +440,7 @@