summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/editing/dnd/canvas/005.xhtml
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/html/editing/dnd/canvas/005.xhtml')
-rw-r--r--testing/web-platform/tests/html/editing/dnd/canvas/005.xhtml26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/editing/dnd/canvas/005.xhtml b/testing/web-platform/tests/html/editing/dnd/canvas/005.xhtml
new file mode 100644
index 000000000..fd9c9389e
--- /dev/null
+++ b/testing/web-platform/tests/html/editing/dnd/canvas/005.xhtml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>Drag and drop to iframe: dropping block element onto canvas</title>
+<style type="text/css">
+div
+ {width:20px;
+ height:20px;
+ background-color:green;}
+iframe
+ {width:200px;
+ height:200px;
+ border-style:none;}
+</style>
+<script type="application/ecmascript">
+function start(event)
+ {event.dataTransfer.effectAllowed = 'copy';
+ event.dataTransfer.setData('text/plain', 'green');}
+</script>
+</head>
+<body>
+<div draggable="true" ondragstart="start(event)"/>
+<p>Drag green box above to the gray canvas below. Canvas should turn green when you drop green box on it.</p>
+<p><iframe src="helper-drop-here-canvas.xhtml">Canvas</iframe></p>
+</body>
+</html> \ No newline at end of file