Re: [css-houdini-drafts] [css-paint-api] Running author function without proper preparation.

I think we should be able to change:
Let paintInstance be the result of Construct(paintCtor).
to:
Let paintInstance be the result of [constructing](https://heycam.github.io/webidl/#construct-a-callback-function) paintCtor, with no arguments.

I think I based this off the old web components spec initially, which also performed a direct construct (https://w3c.github.io/webcomponents/spec/custom/)

The only concrete difference I can see in our implementation is this will run microtasks at the end of the ctor, when it doesn't look like we currently are. (This will be minor enough for us to fix). 

-- 
GitHub Notification of comment by bfgeek
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/743#issuecomment-378872546 using your GitHub account

Received on Thursday, 5 April 2018 09:18:14 UTC