Home | History | Annotate | Download | only in ManualTests
      1 <!DOCTYPE html>
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <body onload="addImg()">
      4 <style>
      5 .killme { display:none }
      6 </style>
      7 <div style="overflow:hidden; position:absolute; width:150px; height:150px; top:50px; left:0px">
      8   <div id='parent' style="overflow:hidden; position:absolute; width:150px; height:150px; top:50px; left:0px">
      9     <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
     10       <g>
     11         <rect id='rrr' x='0' y='0' width='10' height='10'/>
     12       </g>
     13     </svg>
     14   </div>
     15 </div>
     16 <script>
     17 function boomie() {
     18     document.body.offsetTop;
     19     document.getElementById('rrr').setAttribute('x', '20');
     20     document.getElementById('parent').className='killme';
     21 }
     22 function addImg() {
     23     window.setTimeout(function() {
     24         var i = new Image();
     25         i.src = 'http://www.webkit.org/nosuchfile.png';
     26         document.body.appendChild(i);
     27         i.onerror = boomie;
     28     }, 15);
     29 }
     30 </script>
     31 </body>
     32 </html>
     33 
     34