invisible-objects.html 599 B

1234567891011121314151617181920
  1. <html>
  2. <head>
  3. <script src="resources/text-based-repaint.js"></script>
  4. <script>
  5. function repaintTest()
  6. {
  7. document.getElementById("block").style.height = "100px";
  8. document.getElementById("inline").innerText = "is invisible";
  9. }
  10. </script>
  11. </head>
  12. <body onload="runRepaintAndPixelTest()">
  13. <div style="visibility: hidden; position: relative;">
  14. <span id="inline">Invisible text</span>
  15. </div>
  16. <div style="visibility: hidden; position: relative;">
  17. <div id="block" style="height: 50px;"></div>
  18. </div>
  19. </body>
  20. </html>