Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 566 Bytes

File metadata and controls

43 lines (32 loc) · 566 Bytes

selector-pseudo-class-focus

Checks the presence of a pseudo-class for selectors with :hover.

a:hover,
a:focus {
}

This rule considers :focus pseudo-class selector defined in the CSS Specifications. The --fix option on the command line can automatically fix all of the problems reported by this rule.

Options

true

The following pattern is considered a violation:

a:hover {
}

The following patterns are not considered violations:

a:hover,
a:focus {
}
a:focus {
}
a:hover {
}
a:focus {
}