blob: 4781c7ed61a83a155cd30777acd54c60dab79f05 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
embed {
position: absolute;
margin: 10px;
}
.container {
position: relative;
border: 2px solid blue;
padding: 20px;
width: 100px;
}
</style>
<script type="text/javascript" charset="utf-8">
function hideFirst()
{
var firstDiv = document.getElementById('first');
if (!firstDiv)
return;
firstDiv.parentNode.removeChild(firstDiv);
document.body.clientWidth;
}
</script>
</head>
<body>
<embed type="application/x-webkit-test-netscape" onpaintevent="hideFirst()" drawingmodel="coreanimation"></embed>
<p>This test should not assert or crash when loaded in Safari, when Safari captures a snapshot.</p>
<div id="first" class="container">
</div>
</body>
</html>