Skip to content

Conversation

@bartveneman
Copy link
Contributor

@bartveneman bartveneman commented May 25, 2025

Ran into ::view-transition-old() in the wild and added some more resilience while I was fixing it. This aligns with previous fixes in #14 and #29.

The complete code as I found it:

html::view-transition-old() {
	animation-name: -ua-view-transition-fade-out;
}

html::view-transition-new() {
	animation-name: -ua-view-transition-fade-in;
}

@bartveneman bartveneman changed the title 💥 Do not crash on empty pseudo class arguments 💥 Do not crash on empty pseudo arguments May 25, 2025
Copy link
Owner

@bramus bramus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor code optimization suggestions

@bramus bramus merged commit af31c7e into bramus:main May 26, 2025
3 checks passed
@bartveneman bartveneman deleted the prevent-vt-old-crash branch May 26, 2025 09:12
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