Re: [csswg-drafts] [css-view-transitions-2] Figuring out whether a ViewTransition was skipped or not, is not possible (#13379)

OK, I found a _hack_ that gets me to what I want to achieve: check if the transitionRoot matches `:active-view-transition` or not.

```
t.finished
  .then(() => {
   const wasSkipped = document.querySelector('html:active-view-transition') != null;
  })
 ;
```

I’d still like to see this solved at the spec level because:

- It feels like I’m abusing the order of the lifecycle here.
- There is a disconnect between CSS saying there is a View Transition (`:active-view-transition`) and JS saying there is one (`document.activeViewTransition`)



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


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

Received on Thursday, 22 January 2026 10:14:16 UTC