You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a class, if every occurrence of element.my-class is div.my-class, then of course that looks overqualified and unnecessary. But if I have li.my-class dt.my-class and dd.my-class, then they do not appear to be overqualified.
I think this warning should only be displayed if every occurrence of element.class is a reference to the same HTML tag name.
The text was updated successfully, but these errors were encountered:
Overqualified Elements
Element (li.last) is overqualified, just use .last without element name.
Overqualified Elements
Element (p.last) is overqualified, just use .last without element name.
If the author was to reduce both selectors down to .last as suggested, all elements with that class would receive the compiled sum of both styles (in this case, margin-bottom:10px), which isn't the intention of the CSS code.
For a class, if every occurrence of element.my-class is div.my-class, then of course that looks overqualified and unnecessary. But if I have li.my-class dt.my-class and dd.my-class, then they do not appear to be overqualified.
I think this warning should only be displayed if every occurrence of element.class is a reference to the same HTML tag name.
The text was updated successfully, but these errors were encountered: