axept/prejss

wrong parser on float property

BrRenat opened this issue · 4 comments

Maybe I do not understand something, but when i set property float float: left it transform to
'cssFloat': 'left'

Good point! Thank you.

It seems the problem in PostCSS:

We'll need to investigate more deeply why the latests fixes by @ai are not working for https://github.com/axept/prejss-postcss-parser while it's using pretty new version of postcss-js.

ai commented

postcssJs.objectify transforms float to cssFloat, because it is reserved keyword in some browsers

Andrey @ai, thanks for clarification. But it seems stringified keys like:

result['float'] = 'left'

Could be used without any problems. Or I'm wrong here?

ai commented

Hm. To understand how to fix problem, I need to know what is the real problem here.