move Safari hacks to CSS, do not optimize contrast in Chrome