javaScript.htmlElement.getComputedStyle.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maui Show documentation
Show all versions of maui Show documentation
Maintainable automated UI framework
function fun(element) {
var hash = {};
var styleArgs = window.getComputedStyle(element, null);
var len = styleArgs.length;
for (var i = 0; i < len; i++) {
var style = styleArgs[i];
hash[style] = styleArgs.getPropertyValue(style);
}
return hash;
}