diff options
Diffstat (limited to 'testing/web-platform/tests/html/editing/dnd/canvas/helper-drag-me-green-box.xhtml')
-rw-r--r-- | testing/web-platform/tests/html/editing/dnd/canvas/helper-drag-me-green-box.xhtml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/editing/dnd/canvas/helper-drag-me-green-box.xhtml b/testing/web-platform/tests/html/editing/dnd/canvas/helper-drag-me-green-box.xhtml new file mode 100644 index 0000000000..91a9fa9808 --- /dev/null +++ b/testing/web-platform/tests/html/editing/dnd/canvas/helper-drag-me-green-box.xhtml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>Canvas drag and drop: helper file</title> +<style type="text/css"> +div + {width:20px; + height:20px; + background-color:green;} +body + /* Center the div in this iframe since we know the iframe size (it's fixed + * in the parent page to 'width:300px; height:200px;') */ + {margin-top:90px; + margin-left:140px;} +</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)"/></body> +</html> |