scroll-timeline icon indicating copy to clipboard operation
scroll-timeline copied to clipboard

Chokes on certain CSS files

Open EGreg opened this issue 1 year ago • 1 comments

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

EGreg avatar Dec 22 '24 20:12 EGreg