WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 250609
248868
[content-blocker] css-display-none doesn't removes elements with :has selector
https://bugs.webkit.org/show_bug.cgi?id=248868
Summary
[content-blocker] css-display-none doesn't removes elements with :has selector
maximtop
Reported
2022-12-07 05:12:03 PST
Safari 16 started supporting `:has` selector, but it doesn't work in the content blocker. STR: 1. add rule ``` [{"trigger":{"url-filter":".*","if-domain":["*example.org"]},"action":{"type":"css-display-none","selector":"div:has(p)"}}] ``` 2. go to `example.org` expected: the whole div should be hidden actual: div is not hidden also, other CSS rules in content-blocker don't work as well if added with this rule
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-12-14 05:12:17 PST
<
rdar://problem/103352966
>
maximtop
Comment 2
2023-02-09 02:56:16 PST
seems to be resolved here
https://bugs.webkit.org/show_bug.cgi?id=250609
Antti Koivisto
Comment 3
2023-02-09 05:54:46 PST
Thanks! Sorry for the forward duplicate. *** This bug has been marked as a duplicate of
bug 250609
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug