6 <style type=
"text/css">
8 transform: rotateZ
(0deg) rotateX
(0deg) rotateY
(0deg);
12 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
14 if (window
.testRunner
) {
15 testRunner
.dumpAsText();
16 testRunner
.waitUntilDone();
23 runAfterLayoutAndPaint(function() {
25 document
.getElementById('testPlugin').invalidateRect(0, 0, 200, 200);
26 runAfterLayoutAndPaint(function() {
28 document
.getElementById('result').innerHTML
= "SUCCESS";
29 if (window
.testRunner
)
30 testRunner
.notifyDone();
41 <body onload=
"onLoad();">
42 This tests that NPN_InvalidateRect works correctly.
44 <div id=
"result">FAILURE
</div>
46 <!-- force this page to be composited -->
50 <!-- Move the plugin to the middle of the page. This ensures that invalidate() will invalidate the correct region. -->
51 <div style=
"position: absolute; left: 300px; top: 300px; height: 400px; width: 400px; padding: 1em;">
53 <embed id=
"testPlugin" type=
"application/x-webkit-test-netscape" width=
"200" height=
"200" onpaintevent=
"didPaint()" windowedPlugin=
"false"></embed>