You could just do it
var elems = document.body.getElementsByTagName("*");
for (var i = elems.length; i--;) {
var m = window.getComputedStyle(elems[i],null).getPropertyValue("margin");
console.log(m)
}
Here you can either study the log, or split the variables into margin.left, etc., and check if this number is not less.
source
share