Skip to content

Conversation

@chrisdavidmills
Copy link
Contributor

@chrisdavidmills chrisdavidmills commented Nov 27, 2025

Summary

Chrome and Safari have both supported view transition types (see https://chromestatus.com/feature/5089552511533056) for a while, so it is high time I got them documented on MDN.

Having checked BCD, it seems that we have pretty much all of the data we need in place already, but I wanted to improve the Document.startViewTransition() data:

  1. Originally, the method only took one parameter, a callback function.
  2. It then got updated so that it can either take the callback function, or an options object containing the callback function as a property, plus a types array as a property.
  3. The current data has two sub-data points:
    a. updateCallback makes sense — this is the callback parameter mentioned in 1.
    b. callbackOptions doesn't make sense. This refers to a mixin in the spec that represents the possible parameter values as one item. This is a spec construct and not a real value that developers can use. It would be better to have a sub-data point for the options object, with sub-sub-data points for the possible object properties. This last bit is maybe not totally necessary, but I thought it would be useful for developers who are specifically checking the compat table for types support.

This PR updates the data as described above, and also updates the spec URLs so they all point to the Level 2 of the spec

Test results and supporting details

Related issues

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:m [PR only] 25-100 LoC changed labels Nov 27, 2025
@github-actions
Copy link
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:m [PR only] 25-100 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant