tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

130.xhtml (829B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4 <title>RTL text selection drag and drop to block element</title>
      5 <style type="text/css">
      6 div[ondragenter]
      7  {width:300px;
      8  height:100px;
      9  margin-top:20px;
     10  padding:10px;
     11  color:white;
     12  background-color:navy;}
     13 </style>
     14 </head>
     15 <body onload="window.getSelection().selectAllChildren(document.querySelector('p'))">
     16 <p>&#x202E;FAIL|SSAP&#x202C;</p>
     17 <p>Drag selected text to the blue box. Copy of selection should end up in the box once you drop it there. Text direction should be preserved during drag and drop.</p>
     18 <div
     19  dir="rtl"
     20  ondragenter="event.preventDefault()"
     21  ondragover="return false"
     22  ondrop="document.querySelector('div').appendChild(document.createTextNode(event.dataTransfer.getData('text/plain')))"
     23 />
     24 </body>
     25 </html>