summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/editing/dnd/platform/drag-keypress.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/html/editing/dnd/platform/drag-keypress.html')
-rw-r--r--testing/web-platform/tests/html/editing/dnd/platform/drag-keypress.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/editing/dnd/platform/drag-keypress.html b/testing/web-platform/tests/html/editing/dnd/platform/drag-keypress.html
new file mode 100644
index 000000000..adb543ad4
--- /dev/null
+++ b/testing/web-platform/tests/html/editing/dnd/platform/drag-keypress.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<title>drag &amp; drop - pressing tab while dragging</title>
+<style>
+ body > div {
+ height: 200px;
+ width: 200px;
+ background-color: orange;
+ }
+ body {
+ height: 5000px;
+ }
+ p {
+ margin-top: 1000px;
+ }
+</style>
+
+<script>
+window.onload = function() {
+ window.scrollBy(0,1000);
+ document.getElementsByTagName('div')[0].ondragstart = function(e) {
+ e.dataTransfer.effectAllowed = 'copy';
+ e.dataTransfer.setData('text', 'dummy text');
+ };
+};
+</script>
+<noscript>Enable JavaScript and reload</noscript>
+<p>Drag the orange square. While still dragging, press the Tab key on your keyboard. Fail if the page scrolls.</p>
+<div draggable="true"></div> \ No newline at end of file