← Stop Writing JS to Detect a Stuck Header. `scroll-state()` Fixes It.Quiz
Scroll-state container queries: detecting "stuck" without JS
Check what stuck from the post: how the old sentinel + IntersectionObserver trick works and where it drifts, and how container-type: scroll-state and @container scroll-state(stuck: top) read the browser's own sticky state directly.
questions7
pass mark70%
resultsat the end
No account needed. Answer all 7 questions, then see your score with every answer explained and a reference to the spec or MDN — pass and you can claim a certificate.