diff --git a/test/unit/styling-scoped.html b/test/unit/styling-scoped.html
index d502d5905a..d7547740fe 100644
--- a/test/unit/styling-scoped.html
+++ b/test/unit/styling-scoped.html
@@ -418,6 +418,17 @@
assertComputed(t, 'auto', 'top');
});
+ test(':host(...) with non-matching type selector does not leak', function() {
+ var t = document.createElement('x-shared1x-shared2');
+ t.textContent = ':host(non-matching-type-selector)';
+ document.body.appendChild(t);
+ assertComputed(t, '0px');
+ var t = document.createElement('x-shared2x-shared1');
+ t.textContent = ':host(non-matching-type-selector)';
+ document.body.appendChild(t);
+ assertComputed(t, '0px');
+ });
+
});