AFASSoftware / maquette

Pure and simple virtual DOM library

Home Page:https://maquettejs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

camelCase styles seems to be broken in last release

jvanoostveen opened this issue · comments

When I have inline styles, the camel case notation seems to be broken.
Thus:

h('div', { styles: { backgroundImage: 'url(...)' } }

will not result in background-image on the element, but is simply ignored.

This still works:

h('div', { styles: { 'background-image': 'url(...)' } }

but it makes it a breaking change (especially since the code completion suggests the camel case options).