https://stackoverflow.com/a/17637937/3174065 it is answered here though this method does use some JS. if used, be sure to put the js in the footer, the body has to be fully loaded for this to fire properly, when placed in the head it errors because it fires before the body is loaded.
it then adds a .safari class to the body, but only in safari, making targeting the css very easy.