Re: [css-houdini-drafts] [css-paint-api] Use JS export instead of registerPaint

I don't understand how this would work. How would the browser know that the module in question is defining a custom paint class, and so should be registered as one?  From the sample you've given, it just looks like an ordinary export.

(I agree with @surma in general - attaching extra magic to an export doesn't seem like a good direction. At least it's not one we've explored so far, and I'm not sure there's much, if any, precedence for this pattern among existing Node module usage.)

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

Received on Sunday, 21 January 2018 17:30:02 UTC