dom-tools
Version:
A tiny collection of DOM helpers for IE8+.
13 lines (11 loc) • 309 B
JavaScript
var _getComputedStyle = require('./getComputedStyle');
// IE8+
//
// Snippet from:
// http://youmightnotneedjquery.com/#get_style
//
// We can support IE8+ by using our version of "getComputedStyle"
function css(/* Element */ el, ruleName) {
return _getComputedStyle(el)[ruleName];
}
module.exports = css;