I need to get a cascaded style value of an element (not the computed one), or to determine whether the actual value was computed or not.
For example, if I have an element with css rule width: 100%
, I want to get the value 100%
and not the actual pixels value, or just to know that the actual value was computed.
I know that I can get it using elem.currentStyle
, and I also found a way in Chrome to find it using document.defaultView.getMatchedCSSRules()
.
Does anyone know a way to get it in other browsers?