One-com / livestyle

NodeJS middleware and binary for setting up a webserver that notifies the browser of CSS updates.
BSD 3-Clause "New" or "Revised" License
75 stars 14 forks source link

JS error in livestyle-client in Firefox v34 #52

Open Munter opened 9 years ago

Munter commented 9 years ago

The livestyle client throws an error on this line when parsing the style rules: https://github.com/One-com/livestyle/blob/master/livestyle-client.js#L155

value is undefined because propertyName contains a -, in this case the propertyName is flex-direction. Apparently Firefox have changed their implementation of the css style declaration to use the JavaScript camelCase notation for looking up properties, so Firefox expects the property name to be flexDirection. Hence the lookup of the value fails.

When did this change happen?

Munter commented 9 years ago

Also, this obviously stops live reloading from working, so it would be nice to get fixed