chromium/third_party/blink/web_tests/fast/scroll-behavior/smooth-scroll-overflow-hidden.html

<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<style>

body { overflow: hidden; }
#space { height: 2000px; }

</style>
<div id="space"></div>
<script>

async_test(t => {
    onscroll = t.step_func_done(() => {
        assert_true(scrollY > 0);
    });
    scroll({behavior: "smooth", top: 500});
}, 'scroll');

</script>