Discover !important attribute in a ruleset

Discover !important attribute in a ruleset

Need to know whether or not a dom element has a rule set with important priority.
Example:
a div with a class of class1:
I need to dicover the important attributes for both cases.
.class1 {
width: 50px !important;
padding-left: 10px !important;
}
Thx
I. Sher