Skip to content

Commit

Permalink
documented the weak webgl test. version bump to 1.7 final.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Feb 21, 2011
1 parent 377a862 commit 5fd67eb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions modernizr.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*!
* Modernizr v1.7pre
* Modernizr v1.7
* http://www.modernizr.com
*
* Developed by:
* - Faruk Ates http://farukat.es/
* - Paul Irish http://paulirish.com/
*
* Copyright (c) 2009-2010
* Copyright (c) 2009-2011
* Dual-licensed under the BSD or MIT licenses.
* http://www.modernizr.com/license/
*/
Expand All @@ -26,13 +26,13 @@
*
* @author Faruk Ates
* @author Paul Irish
* @copyright (c) 2009-2010 Faruk Ates.
* @copyright (c) 2009-2011 Faruk Ates.
* @contributor Ben Alman
*/

window.Modernizr = (function(window,document,undefined){

var version = '1.7pre',
var version = '1.7',

ret = {},

Expand Down Expand Up @@ -296,7 +296,10 @@ window.Modernizr = (function(window,document,undefined){
return !!(ret['canvas'] && is(document.createElement( 'canvas' ).getContext('2d').fillText, 'function'));
};


// This WebGL test false positives in FF depending on graphics hardware. But really it's quite impossible to know
// wether webgl will succeed until after you create the context. You might have hardware that can support
// a 100x100 webgl canvas, but will not support a 1000x1000 webgl canvas. So this feature inference is weak,
// but intentionally so.
tests['webgl'] = function(){
return !!window.WebGLRenderingContext;
};
Expand Down

0 comments on commit 5fd67eb

Please sign in to comment.