Re: [csswg-drafts] [css-view-transitions-2] Syntax for navigation-matching (#8925)

> But, even better:
> 
> ```css
> @media (navigation-from: search-results) and (navigation-to: gallery) {
> }
> ```
> 
> Now you only need to define "search-results" URLs once, rather than twice.

I still prefer `(navigation: from search-results)` and also allow `(navigation: search-results)` if it's bidirectional.
By having the direction optional/omitted by default, we make it easier to generate the simple case:
- some view transitions only occur in specific navigations (e.g. list->movie + movie->list), also on "back" navigations.
- the transition is the default, i.e. using the captured transform rather than a special `keyframes`.
- Customizing by direction is possible and easy but not required



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


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

Received on Tuesday, 13 June 2023 13:20:53 UTC