From c1bdc123f243565e5899dd2b8629480fb4477d8a Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 29 Jun 2019 14:07:54 -0400 Subject: [PATCH] Fix use of sibling-related CSS syntax at prefix position Related discussion: - https://www.reddit.com/r/uBlockOrigin/comments/c6iem5/ --- docs/tests/procedural-cosmetic-filters.html | 4 +- docs/tests/procedural-html-filters.html | 8 ++-- src/js/contentscript.js | 6 +-- src/js/html-filtering.js | 6 +-- src/js/static-ext-filtering.js | 50 ++++++++++++++------- 5 files changed, 43 insertions(+), 31 deletions(-) diff --git a/docs/tests/procedural-cosmetic-filters.html b/docs/tests/procedural-cosmetic-filters.html index aaf7a6ec6..608d24986 100644 --- a/docs/tests/procedural-cosmetic-filters.html +++ b/docs/tests/procedural-cosmetic-filters.html @@ -163,8 +163,8 @@
-
- #pcf #a17 .fail:has(~ b) +
+ #pcf #a17 .fail:has(~ a:has(b))
diff --git a/docs/tests/procedural-html-filters.html b/docs/tests/procedural-html-filters.html index abb0b8747..3108f52f3 100644 --- a/docs/tests/procedural-html-filters.html +++ b/docs/tests/procedural-html-filters.html @@ -128,18 +128,18 @@ ^#phf #a11 .pass > a:has(b) + .fail:has(b) - -
^#phf #a12 .fail:has(+ a)
-
- ^#phf #a13 .fail:has(~ b) +
+ ^#phf #a13 .fail:has(~ a:has(b))
+ +