invalidation-after-opacity-change-subtree.html 570 B

12345678910111213141516171819202122232425262728
  1. <!doctype html>
  2. <style>
  3. #container {
  4. opacity: 0;
  5. font: 10px/1 Ahem;
  6. }
  7. #absolute {
  8. position: absolute;
  9. top: 2000px;
  10. font: 50px/1 Sheriff;
  11. }
  12. </style>
  13. <div id="container">
  14. <div id="absolute">
  15. <p>This test checks that switching opacity invalidates the full subtree.</p>
  16. <p>This text should be visible in the output.</p>
  17. </div>
  18. </div>
  19. <script src="resources/text-based-repaint.js"></script>
  20. <script>
  21. function repaintTest() {
  22. window.scrollTo(0, 2000);
  23. container.style.opacity = "1";
  24. };
  25. runRepaintAndPixelTest();
  26. </script>