CSS navigation matching: declarative view transitions, no JavaScript
A new CSS proposal lets you apply styles based on which specific pages a user navigated between, using @location and @navigation rules that declare view transition sources in CSS instead of wiring them up in JS. Early spec drafting, with @route, between/at conditions, and URL pattern matching still shifting.