478811-3.html (756B)
1 <!DOCTYPE html> 2 <html style="height: 100%"> 3 <head> 4 <script> 5 function doIt() { 6 var d = document.createElement("div"); 7 d.setAttribute("style", 8 "position: absolute; left: 0; right: 0; top: 0; " + 9 "bottom: 0; background: green"); 10 document.getElementById("x").appendChild(d); 11 } 12 </script> 13 </head> 14 <body style="height: 100%" onload="doIt()"> 15 <!-- Button shouldn't get pointer events because it confuses tests if it 16 can be hovered --> 17 <button id="x" style="position: relative; display: table-cell; width: 50%; 18 height: 50%; top: 25%; left: 25%; 19 pointer-events: none"> 20 </button> 21 </body> 22 </html>