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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/cascade-slot-distributed.html

Issue 2074393002: Clean up shadow-dom layout tests so that they are well organized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/LayoutTests/shadow-dom/cascade-slot-distributed.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/cascade-slot-distributed.html b/third_party/WebKit/LayoutTests/shadow-dom/cascade-slot-distributed.html
deleted file mode 100644
index 557548d3fb67cd953d240243e1befe4ceeb1d063..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/shadow-dom/cascade-slot-distributed.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<script src="../resources/js-test.js"></script>
-<div id="host">
- <span class="red" id="span">There should be no red</span>
-</div>
-<script>
-description('Checking if styles in the nested shadow roots apply properly to distributed elements.');
-var root = document.querySelector('#host').attachShadow({'mode': 'open'});
-root.innerHTML = '<div><slot></slot></div><style>::slotted(.red) { color: green; }</style>';
-var root2 = root.firstChild.attachShadow({'mode': 'open'});
-root2.innerHTML = '<style>::slotted(.red) { background-color: green; color: red; }</style><slot></slot>';
-var span = document.querySelector('#span');
-shouldBeEqualToString('getComputedStyle(span).color', 'rgb(0, 128, 0)');
-shouldBeEqualToString('getComputedStyle(span).backgroundColor', 'rgb(0, 128, 0)');
-</script>

Powered by Google App Engine
This is Rietveld 408576698