[view-transitions-1] Have the -image-pair
, -old
, and -new
pseudos inherit animation-timing-function
#11546
Labels
-image-pair
, -old
, and -new
pseudos inherit animation-timing-function
#11546
(This issue is basically a copy of #9817 adjusted to be about
animation-timing-function
instead ofanimation-delay
.)I just caught myself doing this in a project I’m working on:
I needed to do this to sync up the
animation-timing-function
from the::view-transition-group(x)
to its child-pseudos.Without the first code snippet my animations were not in sync: the default fade-in/fade-out on the new/old pseudo runs at a different curve.
I was surprised that
animation-timing-function: inherit;
on the pseudos isn’t part of the UA stylesheet VT styles, especially since the VT UA styles do exactly that foranimation-duration
+animation-fill-mode
+animation-delay
:I think it would be handy to include
animation-timing-function: inherit
for the-image-pair
,-old
, and-new
pseudos in the UA stylesheet so that setting a timing-function on the-group
automatically gets applied on the the child pseudos as well, keeping them all in sync.The text was updated successfully, but these errors were encountered: