Permalink
Commits on Oct 8, 2011
  1. Initial stuff

    ryanseddon committed Oct 8, 2011
Commits on May 26, 2011
  1. Fixes issues #277 & #270

    ryanseddon committed May 26, 2011
    - Elements injected with injectElementWithStyles was failing to get correct offsetWidth/Height in IE6/7
    - Changed soft hyphen entity to be XML friendly see #270
    - Adjuested testStyles unit test to allow IE6 to get correct offsetHeight value.
Commits on May 25, 2011
  1. Why hello, caniuse.com test suite! This is big! ... details below:

    paulirish committed May 25, 2011
    Caniuse has a great collection of visual ref tests, side by side with the Modernizr feature test.
    
    This allows us to visually see these features and verify they match our feature tests.
    
    Everything in the caniuse suite works, except for the audio/video tests.
    
    The huge benefit is that now we can screenshot this one page (on a mobile device per say),
    and get the full rundown of its features, even being able to point out any false
    positives.
    
    Thanks Alexis Deveria for creating such a great collection of tests. :)
Commits on May 24, 2011
  1. Major. Plugin API changes.. And unit tests for 'em.. Details below:

    paulirish committed May 24, 2011
    * Modernizr.event() -> Modernizr.hasEvent()
    * Modernizr.styleElem() -> Modernizr.testStyles()
    
    Added unit tests for testStyles(), the _properties, testProp(), testAllProps()
    
    * More inline docs for the API methods
    * Also the element added via injectElementWithStyles aka testStyles now has an id of #modernizr, not #test
    
    ref #272
Commits on May 23, 2011
  1. test suite: new js folder

    paulirish committed May 23, 2011
  2. merge in all the modernizr output into this page. we'll stick to this…

    paulirish committed May 23, 2011
    … one test page from now on.
  3. small unit testing cleanup.

    paulirish committed May 23, 2011
  4. tweaking detect-globals.js for headless use. wiring up to existing te…

    paulirish committed May 23, 2011
    …sts. OH HAI Object.keys polyfill!
Commits on May 22, 2011
  1. two new addTest signatures: addTest(feature, bool) and addTest({ feat…

    paulirish committed May 22, 2011
    …ure : fn, feature2 : bool });
    
    thanks mucho for both code and API feedback to:
    * @gnarf
    * @aerotwist
    * @chendrix
    * skylamer
    
    thx a BUNCH also to @wheresrhys who brought up the idea and provided an initial implementation.
    
    fixes #269. fixes #239
  2. more docs around Modernizr.prefixed(). nice transitionEnd event name …

    paulirish committed May 22, 2011
    …example from desandro. thxx.
    
    ref #233
  3. Modernizr.prefixed() returns the prefixed or nonprefixed property nam…

    paulirish committed May 22, 2011
    …e variant of your input
    
    Modernizr.prefixed('boxSizing') // 'MozBoxSizing'
    
    fixes #233
    
    Properties must be passed as dom-style camelcase, rather than `box-sizing` hypentated style.
    
    Return values will also be the camelCase variant, if you need to translate that to hypenated style use:
    
        str.replace(/([A-Z])/g, function(str,m1){ return '-' + m1.toLowerCase(); }).replace(/^ms-/,'-ms-');
Commits on May 21, 2011
  1. box-sizing test. fixes #248

    paulirish committed May 21, 2011