OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <meta charset="utf-8"> |
| 3 <title>Drag and Drop: interaction between effectAllowed and dropEffect</title> |
| 4 <link rel="help" href="https://html.spec.whatwg.org/multipage/interaction.html#d
rag-and-drop-processing-model"> |
| 5 <script src="../../resources/testharness.js"></script> |
| 6 <script src="../../resources/testharnessreport.js"></script> |
| 7 <script src="resources/dropEffect-common.js"></script> |
| 8 <style> |
| 9 .box { |
| 10 display: block; |
| 11 border: 1px solid black; |
| 12 width: 100px; |
| 13 height: 100px; |
| 14 } |
| 15 </style> |
| 16 |
| 17 <p> |
| 18 Please drag the "Drag Me" box into the "Drop Here" box repeatedly, until the |
| 19 test ends. |
| 20 </p> |
| 21 |
| 22 <p> |
| 23 <a class="dragged box no-ondragstart" href="https://www.chromium.org"> |
| 24 Drag Me |
| 25 </a> |
| 26 </p> |
| 27 |
| 28 <div class="dropzone box"> |
| 29 Drop Here |
| 30 </div> |
| 31 |
| 32 <p> |
| 33 Current test: <code id="test-description"></code> |
| 34 </p> |
| 35 |
| 36 <script> |
| 37 |
| 38 dropEffectTests([ |
| 39 { drop: 'copy', operation: 'copy' }, |
| 40 { drop: 'link', operation: 'link' }, |
| 41 { drop: 'move', operation: 'move' }, |
| 42 { drop: 'none' }, |
| 43 { drop: 'dummy', operation: 'copy' }, |
| 44 ]); |
| 45 |
| 46 </script> |
OLD | NEW |