[csswg-drafts] [css-shared-element-transitions-1] Should createDocumentTransition take an init dictionary or a callback (#7827)

vmpstr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-shared-element-transitions-1] Should createDocumentTransition take an init dictionary or a callback ==
Currently the [shared element transition spec](https://drafts.csswg.org/css-shared-element-transitions-1/#additions-to-document-api) says that createDocumentTransition (modulo any renames in #7788) should take a dictionary, with currently a single member: updateDOM. 

Since updateDOM is a necessary, or at least a very commonly needed callback, should the signature instead be
`createDocumentTransition(callback)` and then if needed we can extend that to `createDocumentTransition(callback, initDictionary)`?

@jakearchibald  

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7827 using your GitHub account


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

Received on Tuesday, 4 October 2022 20:49:25 UTC