Re: [csswg-drafts] Exposing navigation/route matching (#12594)

> Looking up some of my old VT syntax explorations, I have this snippet where I define the routes in CSS.
> 
> @routes {
>   --articles: urlpattern('/articles');
>   --article: urlpattern('/articles/:article_id');
> }
> Seems like a nice alternative to the proposed `script type=routemap` for defining the possible routes.
> 
> _(The usage of `urlpattern()` in CSS also came up in [#10975 (comment)](https://github.com/w3c/csswg-drafts/issues/10975#issuecomment-2578487201))_

We are likely to use this route definition to things other than styling though... 

-- 
GitHub Notification of comment by noamr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12594#issuecomment-3188956212 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 14 August 2025 15:52:20 UTC