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 border: 1px solid black; |
| 11 width: 100px; |
| 12 height: 100px; |
| 13 } |
| 14 </style> |
| 15 |
| 16 <p> |
| 17 Please drag the green box into the "Drop Here" box repeatedly, until the test |
| 18 ends. |
| 19 </p> |
| 20 |
| 21 <p> |
| 22 <img class="dragged box no-ondragstart" src="resources/greenbox.png"> |
| 23 </p> |
| 24 |
| 25 <div class="dropzone box"> |
| 26 Drop Here |
| 27 </div> |
| 28 |
| 29 <p> |
| 30 Current test: <code id="test-description"></code> |
| 31 </p> |
| 32 |
| 33 <script> |
| 34 |
| 35 dropEffectTests([ |
| 36 { drop: 'copy', operation: 'copy' }, |
| 37 { drop: 'link', operation: 'link' }, |
| 38 { drop: 'move', operation: 'move' }, |
| 39 { drop: 'none' }, |
| 40 { drop: 'dummy', operation: 'copy' }, |
| 41 ]); |
| 42 |
| 43 </script> |
OLD | NEW |