From ae8d2ac594f594249e0ed3bedf0d4cee400ec80c Mon Sep 17 00:00:00 2001 From: MasterKia Date: Thu, 2 Mar 2023 18:30:39 +0330 Subject: [PATCH] Add Filter Performance reference to :upward() and :has() --- Procedural-cosmetic-filters.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Procedural-cosmetic-filters.md b/Procedural-cosmetic-filters.md index 81eeb8f..9eb2a88 100644 --- a/Procedural-cosmetic-filters.md +++ b/Procedural-cosmetic-filters.md @@ -52,12 +52,14 @@ A change from the [commit message](https://github.com/gorhill/uBlock/commit/a71b The `:has(arg)` operator is actually a planned pseudo-class in CSS4, but as of writing no browser supports it (was available in stable channel of Chromium 105+ based browsers after 30 August 2022). Instead of waiting for browser vendors to provide support, uBO provides support for `:has(arg)` as a procedural operator. +See also: [`:upward()` vs `:has()`](./Filter-Performance#upward-vs-has) + *** ### `subject:has-text(needle)` - Description: Select element _subject_ if the text _needle_ is found inside the element _subject_ or its children. -- Chainable: Yes. +- Chainable: Yes.See also: [Filter Performance](./Filter-Performance#removeparam-modifier) - _subject_: Can be a plain CSS selector, or a procedural cosmetic filter. - _needle_: The literal text which must be found, or a literal regular expression. If using a literal regular expression, you can optionally use the `i` and/or `m` flags (version 1.15). It is possible to have `:has-text()` match the @@ -230,6 +232,8 @@ Related discussion: Introduced in uBO [1.25.3b0](https://github.com/gorhill/uBlock/commit/72bb70056843024b1a31fe1ab9c90bd4e8260ba2). Evolution of [`:nth-ancestor(n)`](#subjectnth-ancestorn) selector. +See also: [`:upward()` vs `:has()`](./Filter-Performance#upward-vs-has) + *** ### `subject:watch-attr(arg)`