Sha256: 4bc7cceaff4e1b6efc8951dd3577ef2d64cd3cf699b5f3d04d8582d2c1950649
Contents?: true
Size: 510 Bytes
Versions: 104
Compression:
Stored size: 510 Bytes
Contents
/* global axe*/ function areStylesSet(el, styles, stopAt) { 'use strict'; var styl = window.getComputedStyle(el, null); var set = false; if (!styl) { return false; } styles.forEach(function(att) { if (styl.getPropertyValue(att.property) === att.value) { set = true; } }); if (set) { return true; } if (el.nodeName.toUpperCase() === stopAt.toUpperCase() || !el.parentNode) { return false; } return areStylesSet(el.parentNode, styles, stopAt); } axe.utils.areStylesSet = areStylesSet;
Version data entries
104 entries across 104 versions & 1 rubygems