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> |