How can I detect overwritten css properties?
问题 I can get all css properties for an element with document.stylesheets but some of those are not active because those properties are overwritten. In firebug (chrome developer tools also has this feature), if there's an overwritten css property, you will see something like that: The only way I can think of is comparing active css property for the element (in jQuery $(element).css(property) ) and defined css property in document.stylesheets but it's not a reliable way to do it. Any suggestion?