Hi @argyleink!
I was investigating why https://codepen.io/argyleink/pen/NWZZPLZ doesn't work with Firefox's view transition implementation and turns out it's because of the animation:
@keyframes circle-in-top-right {
from {
clip-path: circle(0%);
}
to {
clip-path: circle(150% at top right);
}
}
Those two clip-path values are not interpolable in Firefox and Safari, because the missing <position> in offset-path has a special meaning.
It's not clear whether <basic-shape>s should interpolate differently if they're in an offset-path or a clip-path, that's weird. Will file a spec issue to clarify. But in the meantime using 0% at center rather than just 0% would make this work in WebKit and Gecko.
Hi @argyleink!
I was investigating why https://codepen.io/argyleink/pen/NWZZPLZ doesn't work with Firefox's view transition implementation and turns out it's because of the animation:
Those two clip-path values are not interpolable in Firefox and Safari, because the missing
<position>inoffset-pathhas a special meaning.It's not clear whether
<basic-shape>s should interpolate differently if they're in anoffset-pathor aclip-path, that's weird. Will file a spec issue to clarify. But in the meantime using0% at centerrather than just0%would make this work in WebKit and Gecko.