tags:

views:

20

answers:

0

I want to use MSHTML to get the style of an html element.

What I want is the computed style but without all the default values. (only the ones that are set in the html and css)

MSHTML has 3 types of styles that I have seen so far style, currentStyle, and runtimeStyle.

style and runtimeStyle only has the inline styles and current Style has everything including inherited and default styles.

Is there a way to get the currently set style (inline, external and internal css) but without all the inherited and default values?

There has got to be a way to do this, the IE developer toolbar seems to know which styles are inherited from where.