Skip to content

Fix Firefox page transitions - #1357

Open
joepio wants to merge 1 commit into
developfrom
cursor/firefox-page-transitions-cf21
Open

Fix Firefox page transitions#1357
joepio wants to merge 1 commit into
developfrom
cursor/firefox-page-transitions-cf21

Conversation

@joepio

@joepio joepio commented Sep 4, 2026

Copy link
Copy Markdown
Member

Related Issues

Page transitions on Firefox were broken: card-to-page morphs exploded into a giant overlay that covered the sidebar, and a duplicate view-transition-name (including Firefox’s false duplicates from inline/block splits) could skip the whole transition or leave the overlay covering the page.

What changed

  • Snapshot sizing is scoped by view-transition-class: titles still scale by height (no horizontal smear), resource-page morphs fill the group with object-fit: cover.
  • Title links that wrap a heading are inline-block so Firefox does not treat a named inline <a> as an IB-split duplicate (bug 1999336).
  • :root gets an explicit height so Firefox’s root snapshot is not stretched (bug 1962617).
  • startViewTransition failures and hung finished promises still navigate and call skipTransition(), so a Firefox capture error cannot freeze the UI.

Firefox verification

Headed Firefox 150: a named inline <a> wrapping a heading rejects with Duplicate view-transition-name value while capturing old state; display: inline-block on the same link is ready-ok. The old global height-based snapshot rule overlaps the sidebar mid-morph; the new resource-page class keeps the morph in the main panel.

Grid before the morph
Broken CSS mid-morph overlapping the sidebar
firefox-page-transitions.mp4

Checklist

  • Add changelog entry linking to issue, describe API changes
  • Add or update tests if needed
  • Update docs if needed (TESTING_COVERAGE.md)

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Scope snapshot sizing by view-transition-class so card-to-page morphs
fill the group instead of exploding sideways, make title links
inline-block to avoid Firefox IB-split duplicate names, and skip a hung
startViewTransition overlay so navigation still completes.

Co-authored-by: joepmeindertsma <joepmeindertsma@gmail.com>
@joepio
joepio marked this pull request as ready for review September 4, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants