Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

documented the weak webgl test. version bump to 1.7 final.

  • Loading branch information...
commit 5fd67ebc49c22be7651e9f422f591fe38417187e 1 parent 377a862
Paul Irish paulirish authored

Showing 1 changed file with 8 additions and 5 deletions. Show diff stats Hide diff stats

  1. +8 5 modernizr.js
13 modernizr.js
... ... @@ -1,12 +1,12 @@
1 1 /*!
2   - * Modernizr v1.7pre
  2 + * Modernizr v1.7
3 3 * http://www.modernizr.com
4 4 *
5 5 * Developed by:
6 6 * - Faruk Ates http://farukat.es/
7 7 * - Paul Irish http://paulirish.com/
8 8 *
9   - * Copyright (c) 2009-2010
  9 + * Copyright (c) 2009-2011
10 10 * Dual-licensed under the BSD or MIT licenses.
11 11 * http://www.modernizr.com/license/
12 12 */
@@ -26,13 +26,13 @@
26 26 *
27 27 * @author Faruk Ates
28 28 * @author Paul Irish
29   - * @copyright (c) 2009-2010 Faruk Ates.
  29 + * @copyright (c) 2009-2011 Faruk Ates.
30 30 * @contributor Ben Alman
31 31 */
32 32
33 33 window.Modernizr = (function(window,document,undefined){
34 34
35   - var version = '1.7pre',
  35 + var version = '1.7',
36 36
37 37 ret = {},
38 38
@@ -296,7 +296,10 @@ window.Modernizr = (function(window,document,undefined){
296 296 return !!(ret['canvas'] && is(document.createElement( 'canvas' ).getContext('2d').fillText, 'function'));
297 297 };
298 298
299   -
  299 + // This WebGL test false positives in FF depending on graphics hardware. But really it's quite impossible to know
  300 + // wether webgl will succeed until after you create the context. You might have hardware that can support
  301 + // a 100x100 webgl canvas, but will not support a 1000x1000 webgl canvas. So this feature inference is weak,
  302 + // but intentionally so.
300 303 tests['webgl'] = function(){
301 304 return !!window.WebGLRenderingContext;
302 305 };

0 comments on commit 5fd67eb

Please sign in to comment.
Something went wrong with that request. Please try again.