Interop 2025 is here! 馃帀
Interop 2025 is here! 馃帀
@Jbasoo Yes, it鈥檚 *SO* good.
I鈥檓 also very much looking forward to the upcoming tweaks that Chrome is working on: delayed commit (https://chromestatus.com/feature/5134734612496384) and sourceElement (https://chromestatus.com/feature/5134353390895104).
Those two additions will make the API even better than it already was.
@bramus sourceElement sounds great, I'm kind of doing something similar by tracking the click event target and using it the pageswap event.
I dont know if it's possible but I was thinking it could be handy as a pseudo-class too. That way you could do something like .card:has(:source-element) img{ view-transition-name: image; } and remove the need for pageswap JS to assign the names in some situations.
@Jbasoo Yes, and this is something I have been chatting about internally for a while now.
With .sourceElement shipping, now鈥檚 a good time for me to take this to the CSSWG.
Will file something later today :)
Intro One of the properties of the the Navigation API鈥檚 NavigateEvent is the sourceElement. From the explainer. sourceElement: An Element or null, indicating what element (if any) initiated this na...