Email or username:

Password:

Forgot your password?
Top-level
Bramus

This is very helpful when debugging Scroll-Driven Animations, as `scroll()` and friends by default look up the nearest ancestor scroller which you might have inadvertently created by using `overflow: hidden` somewhere.

4 comments
Bramus

f you run into that problem the fix is easy: swap out your `overflow: hidden` with an `overflow: clip` and you’re good to go.

See brm.us/overflow-clip for details.

Bramus

As noted in my `overflow: clip` article:

I see no reason to use `overflow: hidden` at all on your web pages, unless you have a good reason to. Using `overflow: clip` has exactly the same outcome, doesn’t interfere with Scroll-Driven Animations, and has great browser support.

Timothy Leverett

@bramus apologies on the removed message, I'd miscalculated the date math, it's _almost_ in Baseline: Widely Available.

I'm considering making a calendar for notifications when these features hit Widely Available. 🔜

Happy Striker

@bramus thank you. I finally get why „clip“ is useful 😄

Go Up