Styling the navigation: declarative route and navigation matching in CSS. @bramu...

@webstandards_dev@mastodon.social

Styling the navigation: declarative route and navigation matching in CSS. @bramus walks through a CSS Route and Navigation Matching proposal that lets you style navigation declaratively instead of wiring it up in JavaScript. It adds a @​route rule with URL patterns, a @​navigation rule to react to a navigation’s from and to, a :nav-source pseudo-class for the triggering element, and a :link-to() selector to style links by destination. #css #router

bram.us/2026/07/30/styling-the