| <html> |
| <head> |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
| <script type="text/javascript" src="../../resources/dump-as-markup.js"></script> |
| </head> |
| <body> |
| abc<div style="position: absolute; left: 0px; top: 0px;">def</div>ghi |
| <br/> |
| |
| <script> |
| |
| Markup.description('This tests to see if position:absolute gets wrapped with a position:relative upon copy/paste'); |
| |
| document.designMode = 'on'; |
| |
| if (window.internals) |
| window.internals.settings.setShouldConvertPositionStyleOnCopy(true); |
| |
| var s = window.getSelection(); |
| |
| Markup.dump('test1', 'first test - before'); |
| document.execCommand("SelectAll"); |
| document.execCommand("Cut"); |
| document.execCommand("Paste"); |
| Markup.dump('test1', 'first test - after'); |
| |
| </script> |
| </body> |
| </html> |