Harlan Messinger <hm*******************@comcast.netwrote:
>>Has anyone produced a tool that identifies and lists all the selectors
found among a page's stylesheets that match a particular element, along
with the properties applied in connection with each of them? In other
words, a tool to help identify why a particular element looks as it does
when it isn't consistent with my expectations.
Mozilla DOM Inspector?
Unless I'm overlooking a feature, for a given element the DOM Inspector
only lists the computed style property values, without indicating how it
arrived at them.
That should allow you to establish *if* there is an unexpected property
or value being applied through inheritance or the cascade other than
through the style properties directly attached to the element.
If you then have difficulty establishing which rule causes this, and
this happens frequently enough to be an annoyance, then this suggest
that your stylesheets are to complex.
--
Spartanicus