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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/v0-inert-features-in-v1-shadow-trees.html

Issue 1408203003: Disable insertion points in v1 shadow trees. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v1-youngest-shadow-root-ref
Patch Set: remove expectations Created 5 years, 2 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/fast/dom/shadow/v0-inert-features-in-v1-shadow-trees.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/v0-inert-features-in-v1-shadow-trees.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/v0-inert-features-in-v1-shadow-trees.html
new file mode 100644
index 0000000000000000000000000000000000000000..9bbe29cecb2d770afc89c7e6b18cbb6b6ae05158
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/v0-inert-features-in-v1-shadow-trees.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>v0 features should be inert in v1 shadow trees.</title>
+<script src='../../../resources/testharness.js'></script>
+<script src='../../../resources/testharnessreport.js'></script>
+<script src='resources/shadow-dom.js'></script>
+<div id='host'>
+ <template data-mode='open'>
+ <content></content>
+ <shadow></shadow>
+ </template>
+ <div id='child'></div>
+</div>
+<script>
+convertTemplatesToShadowRootsWithin(host);
+document.body.offsetLeft;
+test(function () {
+ var content = host.shadowRoot.querySelector('content');
+ var shadow = host.shadowRoot.querySelector('shadow');
+ assert_equals(content.getDistributedNodes().length, 0);
+ assert_equals(shadow.getDistributedNodes().length, 0);
+}, "insertion points should be inert in v1");
+</script>

Powered by Google App Engine
This is Rietveld 408576698