Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: LayoutTests/fast/dom/shadow/host-pseudo-class-css-text.html

Issue 212383002: Drop empty list :host() and :host-context(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/shadow/host-pseudo-class-css-text.html
diff --git a/LayoutTests/fast/dom/shadow/host-pseudo-class-css-text.html b/LayoutTests/fast/dom/shadow/host-pseudo-class-css-text.html
index 1f4e9fe600ffc7c6fc364c319bf5f80b9980b6de..761fd74c7ee385360c604d19989bd961dfc7c071 100644
--- a/LayoutTests/fast/dom/shadow/host-pseudo-class-css-text.html
+++ b/LayoutTests/fast/dom/shadow/host-pseudo-class-css-text.html
@@ -5,7 +5,6 @@
<style id="style1">
.foo:host(div, body.mytheme, p#myid, .bar::before, span:hover) > div { display: block; }
:host { display: block; }
-:host() { display: block; }
:host(*) { display: block; }
</style>
<style id="style-invalid">
@@ -14,14 +13,14 @@
:host(div + div) { display: block }
:host(div ~ div) { display: block }
:host) { display: block }
+:host() { display: block; }
</style>
</head>
<script>
description("Test for cssText of ':host()' rule.");
shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(0).cssText", ".foo:host(div,body.mytheme,p#myid,.bar::before,span:hover) > div { display: block; }");
shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(1).cssText", ":host { display: block; }");
-shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(2).cssText", ":host { display: block; }");
-shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(3).cssText", ":host(*) { display: block; }");
+shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(2).cssText", ":host(*) { display: block; }");
shouldBe("document.getElementById('style-invalid').sheet.cssRules.length", "0");
</script>
</html>

Powered by Google App Engine
This is Rietveld 408576698