Knockout style binding: firefox doesn’t set background-color ?
Try to use the backgroundColor attribute rather than background-color .
See this Demo.
This is differ from Knockout-specific thing. By seeing in the relevant KO source code file, The binding sets style like this:
element.style[styleName] = styleValue || "";
The firefox manage this element.style[…] syntax various from Chrome, as can be seen if you type the following in both console windows:
document.body.style['background-color'] = 'red'
This works in Chrome, not in Firefox.