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

Discussed this offline today and the conclusion was that createDocumentTransition(callback) is the simpler and preferable syntax. So **proposed resolution**: "createDocumentTransition takes a callback".

@jakearchibald if I'm reading the whatwg issue right, we want to make callback and dictionaries indistinguishable. So we'd eventually be able to change the API to take a dictionary and the existing code (which passes a callback) would still work. So the above resolution is good for when we eventually have more options to switch to a dictionary?

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


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

Received on Thursday, 20 October 2022 23:03:51 UTC