Sha256: acb78207390488db8191668d15ae3141d2392ba0e527dd958ba42ade30241a70

Contents?: true

Size: 499 Bytes

Versions: 144

Compression:

Stored size: 499 Bytes

Contents

// test by github.com/nsfmc

// "The 'rem' unit ('root em') is relative to the computed
// value of the 'font-size' value of the root element."
// http://www.w3.org/TR/css3-values/#relative0
// you can test by checking if the prop was ditched

// http://snook.ca/archives/html_and_css/font-size-with-rem

Modernizr.addTest('cssremunit', function(){

  var div = document.createElement('div');
  try {
    div.style.fontSize = '3rem';
  } catch(er){}
  return (/rem/).test(div.style.fontSize);

});

Version data entries

144 entries across 144 versions & 7 rubygems

Version Path
rubyneat_dashboard-0.4.0.alpha.4.pre.1 bower_components/modernizr/feature-detects/css-remunit.js
rubyneat_dashboard-0.4.0.alpha.4 bower_components/modernizr/feature-detects/css-remunit.js
TokiCLI-0.2.1 lib/TokiServer/bower_components/modernizr/feature-detects/css-remunit.js
TokiCLI-0.2.0 lib/TokiServer/bower_components/modernizr/feature-detects/css-remunit.js