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

Unified Diff: LayoutTests/fast/css/deep-cascade-order.html

Issue 1332493002: Revert "Implement proposed shadow tree cascade order." (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/deep-cascade-order.html
diff --git a/LayoutTests/fast/css/deep-cascade-order.html b/LayoutTests/fast/css/deep-cascade-order.html
deleted file mode 100644
index 6f6e7741e70bad30af51f32adff06f501aaee14f..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/css/deep-cascade-order.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/js-test.js"></script>
-<style>
- .host1 /deep/ div { color: green }
- #host2 /deep/ div { color: red !important }
-</style>
-<div id="host1" class="host1"></div>
-<div id="host2" class="host2"></div>
-<script>
- description("Cascade order for inner/outer tree rules with /deep/.");
-
- var root1 = host1.createShadowRoot();
- root1.innerHTML = '<style>#d1 {color:red}</style><div id="d1">Should be green</div><div style="color: red">Should be green</div>';
-
- var root2 = host2.createShadowRoot();
- root2.innerHTML = '<style>.d1 {color:green !important}</style><div class="d1">Should be green</div><div style="color: green !important">Should be green</div>';
-
- var green = "rgb(0, 128, 0)";
-
- shouldBe("getComputedStyle(root1.querySelector('div')).color", "green");
-
- debug("TODO(rune@opera.com): Currently fails because style attributes are added to the end, not in its element's scope's cascade order");
- shouldBe("getComputedStyle(root1.querySelector('div + div')).color", "green");
-
- shouldBe("getComputedStyle(root2.querySelector('div')).color", "green");
-
- debug("TODO(rune@opera.com): Currently fails because style attributes are added to the end, not in its element's scope's cascade order");
- shouldBe("getComputedStyle(root2.querySelector('div + div')).color", "green");
-</script>
« no previous file with comments | « LayoutTests/fast/css/content-distributed-nodes-expected.txt ('k') | LayoutTests/fast/css/deep-cascade-order-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698