summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/editing/dnd/selection/087.xhtml
blob: 64e02c1ef7639b82e9f0e76144cf3a0c40254ae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Scrolling during selection drag and drop to text input</title>
<style type="text/css">
input[placeholder]
  {width:300px;
  height:50px;
  margin-top:200px;}
div
  {height:150px;
  width:500px;
  overflow-y:scroll;}
</style>
</head>
<body onload="window.getSelection().selectAllChildren(document.querySelector('p'))">
<p>Drag me</p>
<div>
<p>You should be able to drag selected text to the input at the bottom of scrollable container (dragging towards the bottom edge triggers scrolling).</p>
<input placeholder="Drop selection here"/>
<p>Copy of selection should end up in the input once you drop it there.</p>
</div>
</body>
</html>