Re: [css-houdini-drafts] [css-paint-api] Rename paint(name, args) to paint-name(args)

FWIW I agreed with Lean but then I've read this:

> No, the same inconsistency exists - registerPaint("foo", ...) would define a paint-foo() CSS function.
> To avoid it we'd have to require that you put a paint- prefix on your painter name, like registerPaint("paint-foo", ...).

I think this is a very compelling reason to keep it this way. The API will most likely be (ab)used in JS land anyway, and I think justifying there "redundant" prefixes would result in bad UX.

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

Received on Monday, 9 April 2018 18:09:41 UTC