empty-object-move-and-resize.html 513 B

1234567891011121314
  1. <!DOCTYPE html>
  2. <script src="resources/text-based-repaint.js"></script>
  3. <script>
  4. function repaintTest() {
  5. target.style.top = '200px';
  6. target.style.left = '200px';
  7. target.style.width = '200px';
  8. target.style.height = '200px';
  9. }
  10. onload = runRepaintTest;
  11. </script>
  12. Tests paint invalidation of an empty object when moved and resized.
  13. It passes if there is not any assertion failure or paint invalidation.
  14. <div id="target" style="position: absolute; top: 100px; left: 100px; width: 100px; height: 100px"></div>