- From: Bramus via GitHub <sysbot+gh@w3.org>
- Date: Wed, 08 Jan 2025 19:39:57 +0000
- To: public-css-archive@w3.org
Have we thought about introducing the almighty [`URLPattern`](https://urlpattern.spec.whatwg.org/) to CSS to solve this? Its existence in CSS came up before in the discussions for Cross-Document View Transitions, where one should be able to tweak the transition based on the source and destination URL. With `URLPattern` in CSS – however it might actually look, I have no idea – one could use it for matching `attr(href)` against the current absolute URL (which could be an environment variable) but also against any pattern to, for example, color links to URLs that start with `/articles` in one color but links to `/blog/…` in a different color. -- GitHub Notification of comment by bramus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10975#issuecomment-2578487201 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 8 January 2025 19:39:57 UTC