Michael Stanaland
banner
thatmichael.bsky.social
Michael Stanaland
@thatmichael.bsky.social
Frontend development 🤝 Design 🤝Accessibility
Scroll-state() container queries will be the most painful to wait for - I’ve wanted that for friggin’ years!

bsky.app/profile/nerd...
#CSS scroll-state() container queries
in Chrome 133!

@container scroll-state(stuck: top) {

}

Read all about snapped, stuck and scrollable in this post:
developer.chrome.com/blog/css-scr...

nerdy.dev/scroll-state...
January 17, 2025 at 11:18 AM
Bonus: Discovered I could remove typeRoots because we didn't need it. I thought it was necessary to point to some global .d.ts files, but nope! Thanks @mattpocock.com - your quickie videos are so helpful
November 8, 2024 at 9:58 AM
Turns out the answer is no, you don't need `@types/jest`, you just need to add "vitest/globals" to the "types" array in tsconfig.json. I couldn't find that anywhere in the Vitest docs 😔
November 8, 2024 at 9:52 AM