subtree-root-skipped.html 1.1 KB

1234567891011121314151617181920212223242526
  1. <head>
  2. <title>Repaint test for bug 16034</title>
  3. <script src="resources/text-based-repaint.js" type="text/javascript"></script>
  4. <script>
  5. function repaintTest()
  6. {
  7. var input = document.getElementById("input");
  8. input.value = "PASS";
  9. var div = document.getElementById("div");
  10. div.style.height = "20px";
  11. }
  12. </script>
  13. </head>
  14. <body onload="runRepaintAndPixelTest()">
  15. <div style="overflow: hidden; height: 300px; width: 300px; background-color: aliceblue; position: relative;">
  16. <div style="overflow: hidden; height: 200px; width: 200px; background-color: silver;">
  17. <input id="input" value="FAIL">
  18. <div id="selection">Selection is here</div>
  19. <div id="div" style="position: absolute; bottom: 0; height: 10px; width: 10px; background-color: lightblue;"></div>
  20. </div>
  21. </div>
  22. <script>
  23. var selection = document.getElementById("selection");
  24. getSelection().setBaseAndExtent(selection, 0, selection, 0);
  25. </script>
  26. </body>