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

Unified Diff: LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom.html

Issue 371413004: Fix for input/datalist failure when datalist is created outside document (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Using didNotifySubtreeInsertionsToDocument Created 6 years, 5 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 | LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom.html
diff --git a/LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom.html b/LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom.html
new file mode 100644
index 0000000000000000000000000000000000000000..cb91e81713b09056375c24c9625dd74c4b5cd62e
--- /dev/null
+++ b/LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+
+<template>
+ <datalist id="lang">
+ <option value="D">German</option>
+ <option value="E">English</option>
+ </datalist>
+ <input list="lang" value="5">
+</template>
+
+<div>This test passes if datalist picker element is shown.</div>
+<host></host>
+
+<script>
+var host = document.createElement('host');
+host.createShadowRoot().appendChild(document.querySelector('template').content.cloneNode(true));
+document.body.appendChild(host);
+document.querySelector('host::shadow input').focus();
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/forms/datalist/datalist-inside-shadow-dom-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698