← Home

// FEATURED

// WEBSITE DESIGN

// LABS

// CONTRIBUTIONS

withastro/astro
patch merged

fix(transitions): prevent WebGL context loss on persist canvas during body swap

// PROBLEM

Safari loses WebGL2 context when canvas elements are briefly detached from the DOM during View Transitions navigation.

// FIX

Lift persist elements to <html> before body swap so they're never detached. Integrated moveBefore() API (Chrome 133+) for zero-detachment atomic moves.

// IMPACT

Merged into Astro core (5M+ weekly npm downloads). First integration of moveBefore() into Astro's View Transitions system.

// OPEN SOURCE

// FUN

// PHOTOGRAPHY

Mostly street and architecture. Gallery show in 2024. Portfolio — www.svetim.fm