summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/plugins/plugin-paint-causes-layout.html
blob: 4781c7ed61a83a155cd30777acd54c60dab79f05 (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
34
35
36
37
38
39
<!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>