(selector: string)
| 34 | } |
| 35 | |
| 36 | export function makeSelectorEmpty(selector: string) { |
| 37 | selector = selector.trim(); |
| 38 | if (emptyPseudoClasses.some((pseudo) => selector.endsWith(pseudo))) { |
| 39 | return selector; |
| 40 | } |
| 41 | return `${selector}:empty`; |
| 42 | } |
| 43 | |
| 44 | export function isSelectorWithin(sub: string, parent: string): boolean { |
| 45 | const parentLength = parent.length; |
no outgoing calls
no test coverage detected
searching dependent graphs…