blob: 3a64c019e97908a553c448f0dfa01397580a1e15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<!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>
|