WebCore/manual-tests/layoutroot_detach.xml
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 01:32:07 +0300
changeset 2 303757a437d3
parent 0 4f2f89ce4247
permissions -rw-r--r--
Revision: 201037 Kit: 201039

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<body onload="addImg()">
<style>
.killme { display:none }
</style>
<div style="overflow:hidden; position:absolute; width:150px; height:150px; top:50px; left:0px">
  <div id='parent' style="overflow:hidden; position:absolute; width:150px; height:150px; top:50px; left:0px">
    <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
      <g>
        <rect id='rrr' x='0' y='0' width='10' height='10'/>
      </g>
    </svg>
  </div>
</div>
<script>
function boomie() {
    document.body.offsetTop;
    document.getElementById('rrr').setAttribute('x', '20');
    document.getElementById('parent').className='killme';
}
function addImg() {
    window.setTimeout(function() {
        var i = new Image();
        i.src = 'http://www.webkit.org/nosuchfile.png';
        document.body.appendChild(i);
        i.onerror = boomie;
    }, 15);
}
</script>
</body>
</html>