mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Text input selection drag and drop: events after drag is cancelled</title>
|
||||
<script type="application/ecmascript">
|
||||
function selectText()
|
||||
{document.querySelector('input').select()}
|
||||
function dragMe(event)
|
||||
{event.preventDefault();}
|
||||
function dropIt(event)
|
||||
{say('FAIL (no drop should occur after drag is cancelled)')}
|
||||
function say(it)
|
||||
{document.querySelector('pre').appendChild(document.createTextNode(it + '\n'));}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="selectText()" dropzone="copy string:text/plain" ondrop="dropIt(event)">
|
||||
<p><input value="Try to drag me" ondrag="dragMe(event)"/></p>
|
||||
<p>You should not be able to drop text selection above.</p>
|
||||
<pre/>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user