Skip to content

Instantly share code, notes, and snippets.

@dmose
Created October 27, 2014 16:55
Show Gist options
  • Save dmose/5f754f500a418fbabc6b to your computer and use it in GitHub Desktop.
Save dmose/5f754f500a418fbabc6b to your computer and use it in GitHub Desktop.
var cssDebug = function () {
"use strict";
function init() {
select('display', 'inline').css('border', '1px dotted indigo');
select('display', 'block').css('border', '1px dotted black');
select('display', 'flex').css('border', '1px dotted ForestGreen');
}
function select(property, value) {
return $('*').filter(function(){
return $(this).css(property).toLowerCase().indexOf(value) > -1
});
}
return {
init: init
};
}();
window.addEventListener("load", cssDebug.init);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment