There is not a vanilla way of doing such a thing. You'd have to create your own javascript plugin to put into the IDE. Learn how to structure a javascript plugin for the IDE, then you can put something like this into it (mind you this is pseudo-code):
function validateHeight(HTMLElement element, int height) {
return assertTrue(element.height == height);
}