invalidate-when-receiving-paint-layer.html 541 B

123456789101112131415161718
  1. <!doctype HTML>
  2. <div style="will-change: transform; position: fixed"></div>
  3. <div style="position: relative; border: 1px solid black;">
  4. <div id="target" style="opacity: 1; height: 100px; width: 200px;">
  5. This text should be very light
  6. </div>
  7. </div>
  8. <script src="../../resources/run-after-layout-and-paint.js"></script>
  9. <script>
  10. if (window.testRunner)
  11. testRunner.waitUntilDone();
  12. onload = function() {
  13. runAfterLayoutAndPaint(function() {
  14. target.style.opacity = 0.2;
  15. testRunner.notifyDone();
  16. });
  17. }
  18. </script>