scroll-timeline-document-scroller-quirks.html (1070B)
1 <!-- Quirks mode --> 2 <title>Tests the document scroller in quirks mode</title> 3 <link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#scroll-notation"> 4 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1180575"> 5 <link rel="author" href="mailto:andruud@chromium.org"> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <script src="/scroll-animations/scroll-timelines/testcommon.js"></script> 9 <script src="/css/css-animations/support/testcommon.js"></script> 10 <script src="support/testcommon.js"></script> 11 <style> 12 @keyframes anim { 13 from { z-index: 100; } 14 to { z-index: 100; } 15 } 16 #element { 17 animation: anim forwards; 18 animation-timeline: scroll(root); 19 } 20 #spacer { 21 height: 200vh; 22 } 23 </style> 24 <div id=element></div> 25 <div id=spacer></div> 26 27 <script> 28 'use strict'; 29 30 setup(assert_implements_animation_timeline); 31 32 promise_test(async () => { 33 await waitForCSSScrollTimelineStyle(); 34 assert_equals(getComputedStyle(element).zIndex, "100"); 35 }); 36 </script>