| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 ::backdrop { | |
| 6 display: none; | |
| 7 } | |
| 8 </style> | |
| 9 </head> | |
| 10 <body> | |
| 11 <p>Test that inert nodes are not painted as being selected. The test passes if | |
| 12 none of the text outside the dialog is highlighted when selected.</p> | |
| 13 | |
| 14 <p>Although not shown as selected, the inert nodes are in window.getSelection() | |
| 15 and copied to the clipboard, which is the same behavior as -webkit-user-select: | |
| 16 none (crbug.com/147490).</p> | |
| 17 | |
| 18 <br> <!-- Needed to the trigger the bug. --> | |
| 19 This text shouldn't be highlighted as selected. | |
| 20 | |
| 21 <dialog> | |
| 22 <div id="selectable">I'm selectable.</div> | |
| 23 </dialog> | |
| 24 | |
| 25 <script> | |
| 26 dialog = document.querySelector('dialog'); | |
| 27 dialog.showModal(); | |
| 28 document.execCommand('SelectAll'); | |
| 29 </script> | |
| 30 </body> | |
| 31 </html> | |
| OLD | NEW |