Safari dispatches multiple scroll events during one requestAnimationFrame "cycle". But the scroll event should be limited to the rAF.
Steps to reproduce:
1. open page:
2. Scroll the page
What you see:
You see multiple outputs `bug.` inside of the console.
What I expect:
To me it is not entirely clear wether this is a bug with the scroll event or the rAF.
Here you find an updated testcase:
The old one said "success." although it is a bug. Having multiple scroll events in one render cycle can lead to performance problems and layout thrashing. Additionally it is not standard complaint. This bug only occurs in Safari not in Chrome, FF or Edge.