delete-at-text-following-svg.html (909B)
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <style> 6 mask, li { 7 float: inline-start; 8 animation-name: kf0; 9 } 10 @keyframes kf0 {} 11 </style> 12 <script> 13 document.addEventListener("DOMContentLoaded", () => { 14 window.focus(); 15 document.designMode = "on"; 16 document.onpointerlockerror = onPointerLockErrorOrAnimationStart; 17 const mask = document.querySelector("mask"); 18 mask.requestPointerLock(); 19 mask.prepend(document.querySelector("table")); 20 }); 21 function onPointerLockErrorOrAnimationStart() { 22 document.execCommand("underline"); 23 document.execCommand("delete"); 24 onanimationstart = onPointerLockErrorOrAnimationStart; 25 try { 26 getSelection().setBaseAndExtent( 27 document.querySelector("li"), 0, 28 document.querySelector("thead"), 0 29 ); 30 } catch (e) {} 31 } 32 </script> 33 <body><svg> 34 <mask> 35 <clipPath> 36 </clipPath></mask></svg><sup> 37 AA 38 <li> 39 <br></li></sup><table> 40 <thead> 41 </thead></table>