This is a very simple question, so I\'ll keep it really brief:
How can I tell if a particular DOM element\'s CSS property is inherited?
Reas
I know this is an old question, however I thought I'd share what I've done with Josh's answer, viz: modified it to remove the css if it was inherited, and turned it into a jQuery plugin. Please feel free to shoot it down, but so far it is working for me :-)
$.fn.isInheritedStyle = function(style) {
var current = this.css(style);
this.css(style, 'inherit');
var inherited = this.css(style);
if (current == inherited)
this.css(style, '');
else
this.css(style, current);
return (current == inherited);
}