Made DomHelper.createStyle more robust against different CSS serialization methods used in browsers.