scroll-after-layer-removal.html 596 B

123456789101112131415161718
  1. <!DOCTYPE html>
  2. <style>
  3. #scroll {
  4. width: 100px;
  5. height: 100px;
  6. overflow: scroll;
  7. }
  8. .trans { will-change: transform; }
  9. #space { height: 1000px; }
  10. </style>
  11. <p>This test verifies that cc does not intercept scroll events after a scroller is un-promoted.</p>
  12. <p>It passes if the box can be scrolled with the mouse wheel.</p>
  13. <p>On high DPI, pass --disable-prefer-compositing-to-lcd-text for a meaningful test.</p>
  14. <div id="scroll" class="trans"><div id="space"></div>
  15. </div>
  16. <script>
  17. setTimeout(function() { document.querySelector('#scroll').classList.remove('trans'); }, 1000);
  18. </script>