When a style is overridden in Google Chrome tools, it gets crossed out and you can check the Computed tab to see which element has taken precedence.
Imagine I have CSS code like this:
.myClass {
position: static;
top: 20px;
}
This is incorrect because the 'top' attribute does not work with 'static' positions. However, when I inspect the webpage in Google Chrome and access the DevTools (F12), the style appears under the styles tab as if it was successfully applied, which can be confusing.
Is there a feature in Google Chrome or any other browser/tool that specifically highlights errors such as "cannot apply 'top' to statically positioned element" similar to how Visual Studio points out errors like NullPointerException in code?