mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
b340f8fe3a
* Fixes an issue with view transition names containing spaces or punctuation. * reworked, more robust approach * better readability and also escapes the escape character (_) * update changeset * add comemnts to describe the re-encoding * updated changeset * typos * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * simplify decoding it ever required. * better coverage and now also checks animation behavior --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
635 B
635 B
astro |
---|
minor |
Fixes a regression where view transition names containing special characters such as spaces or punctuation stopped working.
Regular use naming your transitions with transition: name
is unaffected.
However, this fix may result in breaking changes if your project relies on the particular character encoding strategy Astro uses to translate transition:name
directives into values of the underlying CSS view-transition-name
property. For example, Welcome to Astro
is now encoded as Welcome_20to_20Astro_2e
.
This mainly affects spaces and punctuation marks but no Unicode characters with codes >= 128.