src/utilities.js
function styleRuleValueFrom(selector, documentStyleRules) {
  for (var j = 0; j < documentStyleRules.length; j++) {
    if (documentStyleRules[j].selectorText && documentStyleRules[j].selectorText.toLowerCase() === selector) {
      return documentStyleRules[j].style;
    }
  }
}
function styleRuleValueFrom(selector, documentStyleRules) {
  for (var j = 0; j < documentStyleRules.length; j++) {
    if (documentStyleRules[j].selectorText && documentStyleRules[j].selectorText.toLowerCase() === selector) {
      return documentStyleRules[j].style;
    }
  }
}
function styleRuleValueFrom ( selector , documentStyleRules ) { for ( var j = 0 ; j < documentStyleRules . length ; j ++ ) { if ( documentStyleRules [ j ] . selectorText && documentStyleRules [ j ] . selectorText . toLowerCase ( ) === selector ) { return documentStyleRules [ j ] . style ; } } }
Get Style Rule from a specified element
@param {String} selector from element
@param {Array} Document Style Rules
@returns {Object} Merged values of defaults and options
Get Style Rule from a specified element