From 00e707f69467b2aadaba976f3534caf99dd194aa Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 1 Jul 2018 08:45:35 -0400 Subject: [PATCH] Updated Procedural cosmetic filters (markdown) --- Procedural-cosmetic-filters.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Procedural-cosmetic-filters.md b/Procedural-cosmetic-filters.md index 4af6b4e..cd7dabf 100644 --- a/Procedural-cosmetic-filters.md +++ b/Procedural-cosmetic-filters.md @@ -57,7 +57,9 @@ Essentially the same as the `:if(...)` operator, except that the element _subjec - Description: Select element _subject_ if and only if the result of evaluating _arg_ is one or more elements. - Chainable: Yes. - _subject_: Can be a plain CSS selector, or a procedural cosmetic filter. -- _arg_: A declaration in the form `name: value`, where `name` is a valid CSS style property, and `value` is the expected value for that style property. `value` can be a literal text or literal regular expression. If using a literal regular expression, you can optionally use the `i` and/or `m` flags (version 1.15). +- _arg_: A declaration in the form `name: value`, where `name` is a valid CSS style property, and `value` is the expected value for that style property. `value` can be a literal text or literal regular expression: + - Literal text: the value will be matches _exactly_ against property value as returned by browser through [getComputedStyle](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle). + - Literal regular expression: you can optionally use the `i` and/or `m` flags (version 1.15). - Examples: - `extratorrent.*##body > div[class]:matches-css(position: absolute)` - `facet.wp.pl##div[class^="_"]:matches-css(background-image: /^url\("data:image/png;base64,/)`