text: /*!
  {
    "name": "CSS vw unit",
    "property": "cssvwunit",
    "caniuse": "viewport-units",
    "tags": ["css"],
    "notes": [{
      "name": "Related Modernizr Issue",
      "href": "https://github.com/Modernizr/Modernizr/issues/572"
    },{
      "name": "JSFiddle Example",
      "href": "http://jsfiddle.net/FWeinb/etnYC/"
    }]
  }
  !*/
  define(['Modernizr', 'testStyles'], function( Modernizr, testStyles ) {
    testStyles('#modernizr { width: 50vw; }', function( elem, rule ) {
      var width = parseInt(window.innerWidth/2,10);
      var compStyle = parseInt((window.getComputedStyle ?
                                getComputedStyle(elem, null) :
                                elem.currentStyle)['width'],10);
  
      Modernizr.addTest('cssvwunit', compStyle == width);
    });
  });
  