iframe-display-block-to-display-none.html 596 B

123456789101112131415
  1. <!DOCTYPE html>
  2. <script src="resources/text-based-repaint.js"></script>
  3. <script>
  4. function repaintTest()
  5. {
  6. document.getElementById("iframe").style.display = "none";
  7. }
  8. window.addEventListener("load", runRepaintAndPixelTest);
  9. </script>
  10. <p><a href="https://code.google.com/p/chromium/issues/detail?id=650433">issue 650433</a>:
  11. display:none iframes do not have layout objects<br>
  12. The test checks that changing the style of an iframe from block to none
  13. creates the right sequence of paint invalidations.
  14. </p>
  15. <iframe id="iframe" width="728" height="90" style="display: block"></iframe>