Skip to content

Commit

Permalink
Save the whales and or the output of the build
Browse files Browse the repository at this point in the history
  • Loading branch information
SlexAxton committed Feb 27, 2013
1 parent 85bfe05 commit 4392dc8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
23 changes: 16 additions & 7 deletions feature-detects/css/fontface.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
/*!
{
"name": "@font-face",
"property": "fontface",
"authors": ["Diego Perini"],
"tags": ["css"],
"knownBugs": [
"False Positive: WebOS http://github.com/Modernizr/Modernizr/issues/342",
"False Postive: WP7 http://github.com/Modernizr/Modernizr/issues/538"
],
"notes": [{
"name": "@font-face detection routine by Diego Perini",
"href": "http://javascript.nwbox.com/CSSSupport/"
}]
}
!*/
define(['Modernizr', 'testStyles'], function( Modernizr, testStyles ) {
// @font-face detection routine by Diego Perini
// javascript.nwbox.com/CSSSupport/

// false positives:
// WebOS github.com/Modernizr/Modernizr/issues/342
// WP7 github.com/Modernizr/Modernizr/issues/538
testStyles('@font-face {font-family:"font";src:url("https://")}', function( node, rule ) {
var style = document.getElementById('smodernizr');
var sheet = style.sheet || style.styleSheet;
Expand All @@ -13,5 +23,4 @@ define(['Modernizr', 'testStyles'], function( Modernizr, testStyles ) {

Modernizr.addTest('fontface', bool);
});

});
4 changes: 2 additions & 2 deletions feature-detects/fullscreen-api.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
define(['Modernizr', 'domPrefixes'], function( Modernizr, domPrefixes ) {
define(['Modernizr', 'domPrefixes', 'prefixed'], function( Modernizr, domPrefixes, prefixed ) {
// http://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/ControllingMediaWithJavaScript/ControllingMediaWithJavaScript.html#//apple_ref/doc/uid/TP40009523-CH3-SW20
// https://developer.mozilla.org/en/API/Fullscreen
// github.com/Modernizr/Modernizr/issues/739
Modernizr.addTest('fullscreen', !!(Modernizr.prefixed("exitFullscreen", document, false) || Modernizr.prefixed("cancelFullScreen", document, false)));
Modernizr.addTest('fullscreen', !!(prefixed("exitFullscreen", document, false) || prefixed("cancelFullScreen", document, false)));
});

0 comments on commit 4392dc8

Please sign in to comment.