Re: [csswg-drafts] [css-view-transitions-2] view-transition-name determined by element (#8320)

@jensimmons 

> Which is not robust — what if there are more than 50 items on the Grid?? The experience will break.

It will also break if you remove the first item in the grid, because it'll assume the first item in the grid before and after the change are the same grid item, but they are not. This is why you need an identity-based system.

In SPAs, you could say that the element instances is the identity. However, that isn't how it ends up in many SPA implementations, and it's never how it ends up in MPA, since no elements are the same instance across documents.

> I was surprised to learn that 1) I have to use JavaScript to use View Transitions

Out of curiosity, how were you modifying the grid in this example?

-- 
GitHub Notification of comment by jakearchibald
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8320#issuecomment-2044483200 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 9 April 2024 08:53:47 UTC