[Webkit-unassigned] [Bug 248868] New: [content-blocker] css-display-none doesn't removes elements with :has selector
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 7 05:12:03 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=248868
Bug ID: 248868
Summary: [content-blocker] css-display-none doesn't removes
elements with :has selector
Product: WebKit
Version: Safari 16
Hardware: All
OS: macOS 13
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: maximtop at gmail.com
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
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221207/2773aec4/attachment.htm>
More information about the webkit-unassigned
mailing list