← Back to release summary

View Transitions: making callback non-nullable

Category
Miscellaneous
Type
No developer-visible change
Status
Enabled by default (Chrome 120)
Intent stage
None

Summary

The `startViewTransition` call currently takes an optional nullable callback type with a default value of null: `startViewTransition(optional UpdateCallback? callback = null)` This feature changes this to be a non-nullable type: `startViewTransition(optional UpdateCallback callback)` More details: https://github.com/w3c/csswg-drafts/issues/9460

Standards & signals

View on chromestatus.com