after-designMode-off.html (667B)
1 <!doctype html> 2 <html class="reftest-wait"> 3 <head> 4 <meta charset="utf-8"> 5 <meta name="viewport" content="width=device-width,initial-scale=1"> 6 <link rel="match" href="after-designMode-off-ref.html"> 7 <style> 8 :read-only { color: green; } 9 :read-write { color: red; } 10 </style> 11 <script> 12 addEventListener("load", () => { 13 requestAnimationFrame(()=> { 14 document.designMode='on'; 15 getSelection().collapse(document.body.firstChild, 0); 16 requestAnimationFrame(()=> { 17 document.designMode='off'; 18 document.documentElement.removeAttribute("class"); 19 }); 20 }); 21 }, {once: true}); 22 </script> 23 </head> 24 <body><-- No caret should appear here.</body> 25 </html>