diff options
Diffstat (limited to 'testing/web-platform/tests/html/editing/dnd/overlay/062.html')
-rw-r--r-- | testing/web-platform/tests/html/editing/dnd/overlay/062.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/editing/dnd/overlay/062.html b/testing/web-platform/tests/html/editing/dnd/overlay/062.html new file mode 100644 index 000000000..43fc8342d --- /dev/null +++ b/testing/web-platform/tests/html/editing/dnd/overlay/062.html @@ -0,0 +1,22 @@ +<!doctype html> +<html> + <head> + <title>Selection spanning hidden elements</title> + <script type="text/javascript"> +window.onload = function () { + var range = document.createRange(), p = document.getElementsByTagName('p')[0]; + range.selectNodeContents(p); + range.setStart(p.firstChild.firstChild,4); + range.setEnd(p.lastChild.firstChild,5); + window.getSelection().addRange(range); +}; + </script> + </head> + <body> + + <p><span style="display:none">FAILPASS_</span>drag<span style="display:none">_THIS_</span>text<span style="display:none">_PASSFAIL</span></p> + <p><textarea rows="3" cols="50"></textarea></p> + <p>Drag the selected text into the input box. The drag placeholder should match the visible text that is being dragged. When dropped, either "dragtext" or "PASS_drag_THIS_text_PASS" should appear in the input.</p> + + </body> +</html>
\ No newline at end of file |