Disallow unknown pseudo-class selectors.
a:hover {}
/** ↑
* This pseudo-class selector */
This rule considers pseudo-class selectors defined in the CSS Specifications, up to and including Editor's Drafts, to be known.
This rule ignores vendor-prefixed pseudo-class selectors.
以下模式被视为违规:
a:unknown {}
a:UNKNOWN {}
a:hoverr {}
以下模式不被视为违规:
a:hover {}
a:focus {}
:not(p) {}
input:-moz-placeholder {}
给定:
["/^my-/", "pseudo-class"]
以下模式不被视为违规:
a:pseudo-class {}
a:my-pseudo {}
a:my-other-pseudo {}