Skip to content

Instantly share code, notes, and snippets.

@ykzts
Created February 22, 2016 07:30
Show Gist options
  • Save ykzts/564afcc4e8c9a700cc54 to your computer and use it in GitHub Desktop.
Save ykzts/564afcc4e8c9a700cc54 to your computer and use it in GitHub Desktop.
function queryDeclarationAll(name, value) {
return [].filter.call(document.all, function(element) {
return window.getComputedStyle(element)[name] === value;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment