Fixed the data-inview test in Safari