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

Unified Diff: LayoutTests/fast/css/invalidation/shadow-host-toggle.html

Issue 221643002: Only support AddFeatures invalidation set mode for :host or :any in a rightmost selector (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compilation. 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/css/invalidation/shadow-host-toggle.html
diff --git a/LayoutTests/fast/css/invalidation/shadow-host-toggle.html b/LayoutTests/fast/css/invalidation/shadow-host-toggle.html
new file mode 100644
index 0000000000000000000000000000000000000000..02bdfb997715e753fcf9fc555ae0d41b670a408e
--- /dev/null
+++ b/LayoutTests/fast/css/invalidation/shadow-host-toggle.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<div></div>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ var host = document.querySelector('div');
+ var root = host.createShadowRoot();
+ root.innerHTML = '<style>:host(.enabled) #foo { background: green;}</style><div id="foo"></div>';
+
+ var foo = root.querySelector("#foo");
+ host.classList.add('enabled');
+ shouldBe('getComputedStyle(foo).backgroundColor', '"rgb(0, 128, 0)"');
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/shadow-host-toggle-expected.txt » ('j') | Source/core/css/RuleFeature.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698