getting applyed height style for an element

getting applyed height style for an element

I am looking for a way to determine is an element style was determined (thru css) or calculated.

So far I can t find the RightWay(tm) for doing this.

$().height() returns the calculated height which is the same as $().css("height").

I have solved the problem under IE and Opera using DOM.currentStyle.height. 

But not on other browsers (e.g. gecko).

To make clear, I want to know if the height css rule in action is something like: 100%, auto, inherit, 3em, 5pt, 100px.

$().height() returns the browser calculated value to px, even if the current set is '100%'.

Thanks.