Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added test page. currently failing safari...

  • Loading branch information...
commit c3c878d8694ee0117a0d5d59c5185508146fa463 1 parent 0cbb8df
@paulirish authored
Showing with 71 additions and 0 deletions.
  1. +71 −0 snifftest.html
View
71 snifftest.html
@@ -0,0 +1,71 @@
+<!DOCTYPE html>
+<html lang="en" dir="ltr" id="modernizr-1.0" class="no-js">
+<head>
+ <title>@fontface test</title>
+ <style media="screen">
+ body {
+ font: 14px/18px Inconsolata;
+ }
+ li {
+ color: #900;
+ }
+ li.yes {
+ color: #090;
+ }
+ li b {
+ color: #000;
+ }
+
+ span.foo { position: absolute; font-size: 60px; left: 10px; top: 10px; opacity: 0.8; display:none;}
+
+ </style>
+
+
+
+
+ <script>
+ window.start = +new Date();
+
+ window.log = (window.console && console.log) || (window.opera && opera.postMessage) || function(){};
+ </script>
+ <script src="isFontFaceSupportedSniff.js"></script>
+
+
+
+
+</head>
+
+<!--[if lt IE 7 ]> <body id="home" class="ie6 "> <![endif]-->
+<!--[if IE 7 ]> <body id="home" class="ie7 "> <![endif]-->
+<!--[if IE 8 ]> <body id="home" class="ie8 "> <![endif]-->
+<!--[if !IE]><!--> <body id="home"> <!--<![endif]-->
+
+
+
+ <script>
+
+ document.write('isFontFaceSupported:' + isFontFaceSupported +'\n ' );
+
+
+ setTimeout(function(){
+ var str = 'delayed results. ' + isFontFaceSupported;
+ //alert(str);
+ document.getElementById('delay').innerHTML = str;
+ },50);
+
+ </script>
+
+ <div id="delay" style="height: 40px"></div>
+
+
+ <span class="foo" style="font-family: monospace; color: #bada55;">lorem ipsum</span>
+ <span class="foo" style="font-family: __doesntexist__, monospace; color: #facade;">lorem ipsum</span>
+
+ <div id="output" >
+
+</div>
+
+
+
+</body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.