# Procedural cosmetic filters

Back

### Filters

### Tests

`#pcf #a1 .fail:has(b)`
`#pcf #a2 .fail:has(> a > b)`
`#pcf #a3 .fail:not(:has(c))`
I am a needle!!!
`#pcf #a4 .fail:has-text(needle)`
I am a needle!!!
`#pcf #a5 .fail:has-text(/NEEDLE/i)`
I am a needle!!!
`#pcf #a6 .fail:not(:has-text(haystack))`
`#pcf #a7 .fail:matches-css(position: absolute)`
`#pcf #a8 .fail:has(a:matches-css-before(opacity: 0))`
`#pcf #a9 .fail:has(b:matches-css-after(opacity: 0))`
`#pcf #a10 .fail > a > b:nth-ancestor(2)`
`#pcf #a11:xpath(.//b/../..)`
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnaaliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
`#pcf #a12 .fail:min-text-length(300)`
`#pcf #a13 .pass > a:has(b) + .fail`
`#pcf #a14 .pass > a:has(b) + .fail:has(b)`
`#pcf #a15 .pass:watch-attr(class) > .fail:has(b.notok)`
`#pcf #a16 .fail:has(+ a)`
`#pcf #a17 .fail:has(~ a:has(b))`
`#pcf #a18 .fail:remove()`
`#pcf #a19 b:upward(2)`
`#pcf #a20 b:upward(.fail)`