# selector-pseudo-element-no-unknown Disallow unknown pseudo-element selectors. ```css a::before {} /** ↑ * This pseudo-element selector */ ``` This rule considers pseudo-element selectors defined in the CSS Specifications, up to and including Editor's Drafts, to be known. This rule ignores vendor-prefixed pseudo-element selectors. The [`message` secondary option](../../../docs/user-guide/configure.md#message) can accept the arguments of this rule. ## Options ### `true` The following patterns are considered problems: ```css a::pseudo {} ``` ```css a::PSEUDO {} ``` ```css a::element {} ``` The following patterns are _not_ considered problems: ```css a:before {} ``` ```css a::before {} ``` ```css ::selection {} ``` ```css input::-moz-placeholder {} ``` ## Optional secondary options ### `ignorePseudoElements: ["/regex/", /regex/, "non-regex"]` Given: ```json ["/^--my-/", "--pseudo-element"] ``` The following patterns are _not_ considered problems: ```css a::--my-pseudo {} ``` ```css a::--my-other-pseudo {} ``` ```css a::--pseudo-element {} ```