Dev Tools · 2h ago
CSS View Transitions: attr() vs match-element for Naming
Two CSS approaches for assigning unique view-transition-names to multiple elements are compared: attr() reads a data attribute, while match-element derives the name from DOM identity. attr() works cross-document and allows targeted styling, whereas match-element is simpler but limited to same-document transitions. The choice depends on whether the name needs to be referenced elsewhere.
Meridian48 take
A useful technical comparison for frontend developers, but the impact is limited to a niche CSS feature that most sites won't need until browser support matures.
css-view-transitionsweb-development