summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/editing/dnd/selection/021.xhtml
blob: 9f44f264b09061c36e677093e367921698c073b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Selection drag and drop from text input to contenteditable element</title>
<style type="text/css">
div[contenteditable]
  {width:300px;
  height:100px;
  margin-top:20px;
  padding:10px;
  color:white;
  background-color:navy;}
</style>
</head>
<body onload="document.querySelector('input').select()">
<p>Drag selected text to the blue box. Selected text should be moved to the blue box once you drop it there.</p>
<p><input value="Drag me"/></p>
<div contenteditable="true"/>
</body>
</html>