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

rik has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-paint-api] Use JS export instead of registerPaint ==
Instead of adding new syntax, could we reuse an existing one to register paint definitions?

I think `export paintCtor as name` is equivalent to `registerPaint(name, paintCtor)`. This would even allow a simpler syntax `export class foo{}` instead of `class foo{}; registerPaint('foo', foo)`.

For some reason, that might be undesirable but I thought I'd suggest it.

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

Received on Sunday, 21 January 2018 12:18:08 UTC