Home | History | Annotate | Download | only in plugins
      1 <!DOCTYPE html>
      2 
      3 <html>
      4 <head>
      5     <style type="text/css" media="screen">
      6         embed {
      7             position: absolute;
      8             margin: 10px;
      9         }
     10         
     11         .container {
     12             position: relative;
     13             border: 2px solid blue;
     14             padding: 20px;
     15             width: 100px;
     16         }
     17         
     18     </style>
     19     <script type="text/javascript" charset="utf-8">
     20         function hideFirst()
     21         {
     22           var firstDiv = document.getElementById('first');
     23           if (!firstDiv)
     24               return;
     25 
     26           firstDiv.parentNode.removeChild(firstDiv);
     27           document.body.clientWidth;
     28         }
     29     </script>
     30 </head>
     31 <body>
     32     <embed type="application/x-webkit-test-netscape" onpaintevent="hideFirst()" drawingmodel="coreanimation"></embed>
     33 
     34     <p>This test should not assert or crash when loaded in Safari, when Safari captures a snapshot.</p>
     35     <div id="first" class="container">
     36     </div>
     37 
     38 </body>
     39 </html>
     40