6 <style type="text/css">
8 -webkit-transform: rotateZ(0deg) rotateX(0deg) rotateY(0deg);
13 if (window.layoutTestController)
14 layoutTestController.dumpAsText();
20 layoutTestController.display();
22 document.getElementById('testPlugin').invalidateRect(0, 0, 200, 200);
23 layoutTestController.displayInvalidatedRegion();
25 document.getElementById('result').innerHTML = "SUCCESS";
34 <body onload="onLoad();">
35 This tests that NPN_InvalidateRect works correctly.
37 <div id="result">FAILURE</div>
39 <!-- force this page to be composited -->
43 <!-- Move the plugin to the middle of the page. This ensures that invalidate() will invalidate the correct region. -->
44 <div style="position: absolute; left: 300px; top: 300px; height: 400px; width: 400px; padding: 1em;">
46 <embed id="testPlugin" type="application/x-webkit-test-netscape" width="200" height="200" onpaintevent="didPaint()" windowedPlugin="false"></embed>