Chrome & Safari Error::Not allowed to load local resource: file:///D:/CSS/Style.css

You wont be able to access a local resource from your aspx page (web server). Have you tried a relative path from your aspx page to your css file like so… <link rel=”stylesheet” media=”all” href=”https://stackoverflow.com/CSS/Style.css” type=”text/css” /> The above assumes that you have a folder called CSS in the root of your website like this: … Read more

What does the shrink-to-fit viewport meta attribute do?

It is Safari specific, at least at time of writing, being introduced in Safari 9.0. From the “What’s new in Safari?” documentation for Safari 9.0: Viewport Changes Viewport meta tags using “width=device-width” cause the page to scale down to fit content that overflows the viewport bounds. You can override this behavior by adding “shrink-to-fit=no” to … Read more

WebKit CSS content Unicode bug?

This is a bug in WebKit that only got fixed recently (in April 2012). To paraphrase my write-up on escape sequences for CSS identifiers: In theory (as per the spec), any character can be escaped based on its Unicode code point (e.g. for šŒ†, the U+1D306 ā€œtetragram for centreā€ symbol: \1d306 or \01d306), but older … Read more

Chrome and Safari XSLT using JavaScript

If your XSLT is using xsl:include you might receive weird unexplainable errors but always with the same end result: your transformation failing. See this chromium bug report and please support it! http://code.google.com/p/chromium/issues/detail?id=8441 The bug is actually in webkit though. For more info here’s another link which goes into more detail why it doesn’t work. The … Read more

Safari iPad : prevent zoom on double-tap

Here’s a jQuery plugin I wrote for the same purpose – selectively disabling double-tap zoom on given page elements (in my case, navigation buttons to flip pages) I want to respond to every tap (including double-tap) as a normal click event, with no iOS “touch magic”. To use it, just run something like $(‘.prev,.next’).nodoubletapzoom(); on … Read more