40 lines
958 B
HTML
40 lines
958 B
HTML
<!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>
|