From 7cc7910df63d19e7ebc67bb1156437f0559712d7 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Sun, 21 Sep 2014 12:25:47 +0200 Subject: add foundation via bower --- .../modernizr/feature-detects/css-remunit.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 source/bower_components/modernizr/feature-detects/css-remunit.js (limited to 'source/bower_components/modernizr/feature-detects/css-remunit.js') diff --git a/source/bower_components/modernizr/feature-detects/css-remunit.js b/source/bower_components/modernizr/feature-detects/css-remunit.js new file mode 100644 index 0000000..38e15b8 --- /dev/null +++ b/source/bower_components/modernizr/feature-detects/css-remunit.js @@ -0,0 +1,19 @@ + +// 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); + +}); -- cgit v1.2.1