scroll-timeline
scroll-timeline copied to clipboard
Chokes on certain CSS files
How to reproduce: Try putting this in your document:
<style>
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,700);
</style>
the eatUntil() function throws "Advanced beyond end" because it doesn't find { anywhere, and as a result, the whole library aborts.
You should handle edge cases like this. Perhaps don't throw "Advanced beyond end" since "{" might not actually exist in the CSS