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
The following patterns are considered okay and do not cause warnings:
/* unqualified attribute selector is not key */
.selected [type=text] a {
color: red;
}
Should read
The following patterns are considered okay and do not cause warnings:
/* unqualified attribute selector is not key */
a.selected [type=text] {
color: red;
}
I would update this, but could not save edits on the page.
The text was updated successfully, but these errors were encountered:
@Zuppo , you probably think that the selected class applies to an a. However, the rule seems to be about the right-most part of the CSS selectors.
In the current example, the a is on the right side, aka the "key" in this text, so then the unqualified attribute selector (implicitly a universal selector) rule doesn't apply.
Based on this, I think the current example is correct. CSS selectors go from right to left.
https://github.com/CSSLint/csslint/wiki/Disallow-unqualified-attribute-selectors
Should read
I would update this, but could not save edits on the page.
The text was updated successfully, but these errors were encountered: