fixed background flashing in Chrome

only modify CSS properties if not already set