import{aNPlusBNotationPseudoClasses as e,aNPlusBOfSNotationPseudoClasses as t,linguisticPseudoClasses as r,shadowTreePseudoElements as a}from"../reference/selectors.mjs";function s(s){if(!s.parent||!s.parent.parent)return!1;const n=s.parent.parent,p=n.type,o=n.value;if(o){const s=o.toLowerCase().replace(/:+/,"");if("pseudo"===p&&(e.has(s)||t.has(s)||r.has(s)||a.has(s)))return!1}return"nesting"!==s.prev()?.type&&(!s.value.startsWith("%")&&(!s.value.startsWith("/")||!s.value.endsWith("/")))}export{s as default};