Post

@bram.us Could you recommend some reading material to help me debug View Transitions (cross document, same origin) please? I have two sites with identical CSS, on one site they work as expected while on the other they only work when the user presses back/forward buttons.

Check the DevTools Console Tab for log messages. Use the Animations Tab in DevTools to pause your transitions. If you are using pageswap/pagereveal don't forget to do cleanup after the transition ran to handle BFCache.

I'm using pageswap/pagereveal and I'm not getting any console errors whatsoever. There is no animation, so nothing shows up in the Animations Tab. It only animates when pressing back/forward. I use speculation rules for prerendering the page, I am not sure if those interfere with View Transitions. 🤷

If that header is the only difference between those two glitches, it definitely seems to be the cause of the problem. Maybe some heuristic inside Chrome?

Yeah, that's the only difference. Still not sure if it is intentional or a bug though.

0 reposts1 like

Could you remove the prerendering used in the faulty demo? Because when prerendered the VT actually runs. By removing prerendering, the reproduction will be more accurate.