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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/link-in-shadow-tree.html

Issue 2177163002: Allow <link rel=stylesheet> in a connected shadow tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split tests Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/shadow/link-in-shadow-tree-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/shadow/link-in-shadow-tree.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/link-in-shadow-tree.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/link-in-shadow-tree.html
deleted file mode 100644
index 343636a3b4f2a98bda58efc3c340c5f3ccb3af1a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/link-in-shadow-tree.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-</head>
-<body>
-<div id="container"><span id="in-host-children" class="kotori" href="/">tehepero</span></div>
-<div><span id="outside-of-shadow" class="kotori" href="/">tehepero</span></div>
-
-<script src="../../../resources/js-test.js"></script>
-<script>
-function computedBackgroundColor(elem) {
- var style = document.defaultView.getComputedStyle(elem, '');
- return style.backgroundColor;
-}
-
-var container = document.getElementById('container');
-
-var shadowRoot = container.createShadowRoot();
-
-var link = document.createElement('link');
-link.setAttribute('rel', 'stylesheet');
-link.setAttribute('href', 'resources/link-in-shadow-style.css');
-
-var spanInShadow = document.createElement('span');
-spanInShadow.innerHTML = 'tehepero';
-spanInShadow.className = 'kotori';
-
-shadowRoot.appendChild(link);
-shadowRoot.appendChild(spanInShadow);
-shadowRoot.appendChild(document.createElement('content'));
-
-var spanInHostChildren = document.getElementById('in-host-children');
-var spanOutsideOfShadow = document.getElementById('outside-of-shadow');
-
-shouldBe('computedBackgroundColor(spanInShadow)', '"rgba(0, 0, 0, 0)"');
-shouldBe('computedBackgroundColor(spanInHostChildren)', '"rgba(0, 0, 0, 0)"');
-shouldBe('computedBackgroundColor(spanOutsideOfShadow)', '"rgba(0, 0, 0, 0)"');
-
-var successfullyParsed = true;
-</script>
-</body>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/shadow/link-in-shadow-tree-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698