I have an Alfred snippet !or that spits out outline: dashed 1px red;. I use it numerous times a day to test if a class is working or finding an element on a page. Using outline prevents elements from resizing. I also add a consolelog class to my CSS with the same outline property, which is useful for testing conditionally displayed classes.