wrong parser on float property
BrRenat opened this issue · 4 comments
BrRenat commented
Maybe I do not understand something, but when i set property float float: left
it transform to
'cssFloat': 'left'
DenisIzmaylov commented
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
DenisIzmaylov commented
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.