null-scroll-source-crash.html (771B)
1 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1088319"> 2 <meta name="assert" content="Playing animation with null scroll source should not crash."> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <style> 6 html { 7 overflow: scroll; 8 } 9 10 body { 11 overflow: scroll; 12 } 13 </style> 14 <div id="box"></div> 15 <script> 16 test(() => { 17 const effect = new KeyframeEffect(box, []); 18 const timeline = new ScrollTimeline(); 19 const animation = new Animation(effect, timeline); 20 assert_equals(document.scrollingElement, null, 21 "This test relies on scrolling element being nil"); 22 animation.play(); 23 }, "Playing animation with null scroll source should not crash"); 24 </script>