actually there is a solution to detect Safari (no matter which version) by using CSS @supports.
@supports not (fill: context-stroke) { /*CSS*/ }
If you check caniuse you will see Safari has never supported context-stroke
context-stroke