← Back to release summary

CSS pseudo-class for navigation source element

Category
CSS
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

Summary

Selects the element that initiated the navigation, whether it's a link/button/form. The element stays selected throughout the navigation.

Motivation

The main motivation for this comes from view transitions. This gives author a way to visually indicate a relationship between the navigation source (form/button) and the process of the navigation, e.g. expanding a thumbnail using an animation.

Standards & signals

Explainers: https://github.com/WICG/declarative-partial-updates/blob/main/route-matching-explainer.md#link-matching

View on chromestatus.com