mirror of
https://github.com/servo/servo
synced 2026-04-29 02:47:55 +02:00
25 lines
806 B
HTML
25 lines
806 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Non-rendered body should still become current target element</title>
|
|
<style type="text/css">
|
|
span { background: orange; display: inline-block; height: 200px; width: 200px; }
|
|
iframe { border: none; }
|
|
</style>
|
|
<script type="text/javascript">
|
|
window.onload = function () {
|
|
document.getElementsByTagName('span')[0].ondragstart = function (e) {
|
|
e.dataTransfer.setData('text','dummy text');
|
|
e.dataTransfer.effectAllowed = 'copy';
|
|
};
|
|
};
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<p>Drag the orange square onto the blue square and release it. Fail if text does not appear in the blue square.</p>
|
|
<p><span draggable="true"></span> <iframe height="200" width="200" src="031-1.html"></iframe></p>
|
|
<noscript><p>Enable JavaScript and reload</p></noscript>
|
|
|
|
</body>
|
|
</html> |