Created
October 27, 2014 16:55
-
-
Save dmose/5f754f500a418fbabc6b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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