Re: [csswg-drafts] [view-transitions-2] Allow styling based on navigation/transition state (#10434)

^ can't think of a use-case right now but something like this is what I had in mind, in case other data in activation could also be useful.

```css
@navigation-activation (type: back) {
   ...
}
```

But it's fairly trivial to do this via script so I don't feel strongly. `@inbound-view-transition(types) { }` also SGTM with one suggestion, can we omit types for now? Just do `@inbound-view-transition { }` where the rule applies if the Document was activated with a transition.

types can technically be changed during the transition and it's not clear to me whether this should also be changed with them. And since we don't have a use-case for types right now, it's hard to decide. We can easily extend the syntax to add types later if a use-case comes up.

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


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

Received on Wednesday, 12 June 2024 12:24:44 UTC