mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Updated Procedural cosmetic filters (markdown)
parent
f9147ce049
commit
1d22de9bab
1 changed files with 5 additions and 1 deletions
|
|
@ -35,4 +35,8 @@ The `:has(arg)` operator is actually a planned pseudo-class in CSS4, but as of w
|
|||
- Examples:
|
||||
- `mobile.twitter.com##main [role="region"] > [role="grid"] > [role="rowgroup"] [role="row"]:if(div:last-of-type span:has-text(/^Promoted by/))`
|
||||
|
||||
The purpose of `:if(...)` ressembles the purpose of the `:has(...)` operator, however the difference is that the argument for the `:has(...)` operator **can not** be anything else than a plain CSS selector. This limitation to the `:has(...)` operator is to ensure that they will be able to be implemented declaratively once a browser supports `:has(...)` as a valid CSS4 selector.
|
||||
The purpose of `:if(...)` resembles the purpose of the `:has(...)` operator, however the difference is that the argument for the `:has(...)` operator **can not** be anything else than a plain CSS selector. This limitation to the `:has(...)` operator is to ensure that they will be able to be implemented declaratively once a browser supports `:has(...)` as a valid CSS4 selector.
|
||||
|
||||
### `subject:if-not(arg)`
|
||||
|
||||
Essentially the same as the `:if(...)` operator, except that the element _subject_ is selected if the result of evaluating _arg_ is zero elements.
|
||||
|
|
|
|||
Loading…
Reference in a new issue