Questions tagged [safari]

Safari is Apple's web browser, the default browser on macOS and iOS.

Safari is the web browser bundled with iOS and macOS, operating systems from Apple. Previously, Windows was a supported platform but was discontinued after version 5.

Safari uses the WebKit rendering engine and the JavaScript Core JavaScript engine.

For Safari for iOS devices, there is the tag.

Documentation

17726 questions
7
votes
3 answers

Mobile safari downsamples large images. How to retain?

I have an HTML page with a 1675px by 2640px image in it. I tried viewing it in an iPad and apparently mobile safari downsamples the images. We wanted to show a high quality image but safari restricts this. I've been searching for a solution to…
Norbs Knight
  • 169
  • 2
  • 10
7
votes
1 answer

fixed position broken on contentEditable ios webkit safari

I want to create a wysiwyg-editor for ipad and have a toolbar with position:fixed - so that it's always available. However, when I focus on div with contentEditable="true" the toolbar is not fixed any more. Is this a bug? Is there a workaround?
7
votes
0 answers

Determine when a file has been dragged out of the window - Safari 6 OS X

I'm currently able to determine when the user has dragged a file out of the browser window in every other browser, other than Safari on OS X. All other browsers seem to provide some cues in the dragleave event. For example, in Chrome,…
Ray Nicholus
  • 19,538
  • 14
  • 59
  • 82
7
votes
2 answers

How do I detect a keyboard modifier in a bookmarklet?

Is there a way to detect if the user is holding down the shift key (or other modifier keys) when executing a javascript bookmarklet? In my tests of Safari 3.1 and Firefox 3, window.event is always undefined.
rentzsch
  • 3,548
  • 4
  • 27
  • 39
7
votes
2 answers

jQuery Methods not working in Safari 6

Pulling my hair out. Simple jQuery methods are not working in Safari 6. The following code block works in all other browsers that I've tested except Safari 6. It works fine in Safari 5 and older, fine in Firefox, fine in IE. It also works fine in…
Mike B
  • 71
  • 4
7
votes
1 answer

Safari 6 Gradient color blending/interpolation bug

The picture should explain it all. To the left is Safari 6 and behind it on the right is Chrome. Not only is the bottom half of the transparent red gradient completely wrong (which could perhaps be a case of overzealous premultiplied alpha) the top…
Steven Lu
  • 41,389
  • 58
  • 210
  • 364
7
votes
3 answers

Airplay with Custom html5 controls

Does anyone know if there is a way to get Airplay to work on an html5 video that is using CUSTOM CONTROLS? That is the important part, I realize that you can just add the x-webkit-airplay="allow" attribute to the element if you are using the built…
Jim Cooper
  • 5,113
  • 5
  • 30
  • 35
7
votes
3 answers

Modernizr CSS rule ignored by Safari (Mobile Safari as well)

I cannot figure out why Safari/Mobile Safari is ignoring a line of code that uses Modernizr's .generatedcontent rule to hide icons using icomoon. You can view the live site at http://importbible.com/ the icons are on the footer of the page. The…
David Nguyen
  • 8,368
  • 2
  • 33
  • 49
7
votes
4 answers

Javascript alert loads before page displays

On my mobile, in safari If I go to my default page that has alert("Hello") on the body onload event, the alert displays with my default page fully visible in the background. If I then go to another site for example bbc.co.uk and then type in my the…
mjroodt
  • 3,223
  • 5
  • 22
  • 35
7
votes
3 answers

Stray vertical line above 965 pixels with border radius in Safari

I've noticed that if I have a div with a width greater than 965 pixels and a border radius on less than all 4 corners, there is a stray vertical line in the div. Here's a jsFiddle link... http://jsfiddle.net/Z3vFp/4/. Notice that this only occurs in…
7
votes
4 answers

cross-origin video in Safari

Does anyone know if Safari supports crossorigin attribute on the HTML5
akonsu
  • 28,824
  • 33
  • 119
  • 194
7
votes
5 answers

Safari Top Sites Preview

In the Top Sites section of Safari, the iCloud.com image shows the logo instead of the login screen as you can see below. Normally, the Top Sites just shows a picture of the loaded web page (and the loaded page does not look like this). Do you have…
Jack Humphries
  • 13,056
  • 14
  • 84
  • 125
7
votes
1 answer

How do I prevent resize on iPad

I have a web app running on Safari on an iPad. I am starting the app from the iPad home page. I want the app to start in full-screen mode, and to continue running in full-screen mode (i.e. not showing the Safari address bar). I want to prevent the…
Ben
  • 4,281
  • 8
  • 62
  • 103
7
votes
1 answer

Align Checkbox inside a

I seem to be having a strange problem which I can't fully understand. This is my html:
7
votes
2 answers

Unexplained behavior in Safari with negative array indices

Edit: Simpler repro case; the following code: setInterval(function(){ var a=[10,20,30,40], i=-1; a[-1] = 42; while (i<10000) a[i++]; console.log(a[-1],a[4294967295]); },100); …produces the output: 42 undefined undefined 42 42…
Phrogz
  • 296,393
  • 112
  • 651
  • 745