Having been caught out recently when a web site I launched displayed perfectly on IE, Firefox, Chrome and Safari on Windows but was corrupted when viewed using Safari on...
I spent quite a lot of time trying to figure out why video embedded like here: <video height="256" loop autoplay muted controls id="vid"> <source type="video/mp4" src="https://stackoverflow.com/questions/17994666/video_file.mp4"></source> <source type="video/ogg" src="video_file.ogg"></source>...
Similar to “How to detect if OS X is in dark mode?” only for browsers. Has anyone found if there is a way to detect if the user’s system...
alert(new Date('2010-11-29')); chrome, ff doesn’t have problems with this, but safari cries “invalid date”. Why ? edit : ok, as per the comments below, I used string parsing and...
im trying to find a css hack for just safari NOT chrome, i know these are both webkit browsers but im having problems with div alignments in chrome and...
I have some trivial JavaScript to effect a style change: sel = document.getElementById('my_id'); sel.className = sel.className.replace(/item-[1-9]-selected/,'item-1-selected'); return false; This works fine with the latest versions of FF, Opera and...
I am creating a jQuery plugin. How do I get the real image width and height with Javascript in Safari? The following works with Firefox 3, IE7 and Opera...
Safari on iPhone automatically creates links for strings of digits that appear to the telephone numbers. I am writing a web page containing an IP address, and Safari is...
Update at 2018.10.31 This bug has been fixed in iOS 12.1, have a good day~ I found a problem with Array’s value state in the newly released iOSÂ 12 Safari,...
What is the difference between screenX/Y, clientX/Y and pageX/Y? Also for iPad Safari, are the calculations similar as on desktop—OR there is some difference because of viewport? It would...