Re: [csswg-drafts] [css-view-transitions-1] domUpdated isn't the right term (#8144)

The problem with `viewUpdated`, is… what the user sees isn't updated yet.

Here's a diagram I've been working on to go in the spec that tries to explain the phases of a view transition.

https://user-images.githubusercontent.com/93594/204783724-fa9e7782-1b7b-4ccf-b628-bf6d67148f30.mp4

The three promises map to those phases:

- `domUpdated` - once "developer updates DOM"
- `ready` - once "transition layer populated"
- `finished` - once "transition layer cleared"

I had assumed that a change to styling counted as a DOM change, as text content of a style would have changed, or a rule in CSSOM would have changed etc etc. My assumption is that CSSOM was a subset of the DOM, since it's properties that hang off nodes that are part of the document.

`viewUpdated` seems wrong, because the user may not see it yet. It's the document model that's updated.

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


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

Received on Wednesday, 30 November 2022 11:28:15 UTC