Closed AleshaOleg closed 5 years ago
@kof actually code is wrong :( I thought -webkit-
prefix will work for both cases (Safari and Chrome). But according to autoprefixer, Chrome doesn't need prefix and Safari requires it. Don't know for now how to deal with it
@kof please check solution.
I decided to detect Safari via appleTrailingWord
property.
Also can't detect for some reason this property via hasOwnProperty
or in
. That's why I wrote this line with Object.keys()
.
'-apple-trailing-word' in document.createElement('p').style
works
since you are not detecting safari, you are detecting apple as a vendor, mb better to call it vendor
and 'apple' as a value
I mean potentially it could be other browser using webkit fork with this apple specific property
Just pushed updates
@kof could you please check it again? I pushed required changes
Test failed, is the test wrong or the code?