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
jekyll-theme-pirati-6.3.1 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-6.3.0 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-6.2.0 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-6.1.2 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-6.1.1 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-6.1.0 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-6.0.2 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-6.0.1 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-6.0.0 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-5.3.1 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-5.3.0 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-5.2.2 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-5.2.1 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-5.2.0 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-5.1.1 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-5.1.0 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-5.0.0 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-4.3.0 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-4.2.4 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js
jekyll-theme-pirati-4.2.3 _sass/foundation-sites/vendor/modernizr/feature-detects/css-remunit.js