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

Unified Diff: LayoutTests/fast/css/style-scoped/style-scoped-in-shadow.html

Issue 325663003: Remove scoped styles (retry) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix layout test (and expectation) Created 6 years, 6 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/style-scoped/style-scoped-in-shadow.html
diff --git a/LayoutTests/fast/css/style-scoped/style-scoped-in-shadow.html b/LayoutTests/fast/css/style-scoped/style-scoped-in-shadow.html
deleted file mode 100644
index 52a93e90cb587f48c97c996952cb27624b7a8b86..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/css/style-scoped/style-scoped-in-shadow.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-<script>
- description("Tests that <style scoped> is correctly applied as child of a ShadowRoot, and that it doesn't leak out. Can only run within DRT.");
-
- function test()
- {
- if (window.testRunner)
- testRunner.dumpAsText();
-
- var a = document.getElementById("A");
- var b = document.getElementById("B");
- shadow = b.createShadowRoot();
- shouldBeDefined("shadow.innerHTML");
- shouldBeDefined("shadow.getElementById");
- shadow.innerHTML = "<style scoped>div { color: red; }</style><content></content><div id='C'>CCC</div>";
- var c = shadow.getElementById("C");
- var d = document.getElementById("D");
-
- debug("A: " + document.defaultView.getComputedStyle(a, null).getPropertyValue('color')); /* black */
- debug("B: " + document.defaultView.getComputedStyle(b, null).getPropertyValue('color')); /* red */
- debug("C: " + document.defaultView.getComputedStyle(c, null).getPropertyValue('color')); /* red */
- debug("D: " + document.defaultView.getComputedStyle(d, null).getPropertyValue('color')); /* black */
- }
-</script>
-</head>
-<body>
- <div id="A">
- AAA
- </div>
- <div id="B">
- BBB
- </div>
- <div id="D">
- DDD
- </div>
- <script>test();</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698