Opened on 03/25/2019 at 05:32:25 PM
Closed on 08/29/2019 at 05:43:52 PM
#7403 closed defect (rejected)
:-abp-properties() does not work when using a compound selector to select an element whose styles are specified also using a compound selector containing a different first simple selector
Reported by: | mjethani | Assignee: | |
---|---|---|---|
Priority: | P3 | Milestone: | |
Module: | Core | Keywords: | closed-in-favor-of-gitlab |
Cc: | amr, agiammarchi, hfiguiere | Blocked By: | |
Blocking: | Platform: | Unknown / Cross platform | |
Ready: | no | Confidential: | no |
Tester: | Unknown | Verified working: | no |
Review URL(s): |
Description
Environment
Adblock Plus 3.5
Google Chrome 75 (Canary)
macOS 10.12
How to reproduce
Add the filter #?#body span:-abp-properties(color: red)
Then load the following document:
<html> <head> <style> div .ad { color: red; } </style> </head> <body> <div> <span class="ad">Ad</span> </div> </body> </html>
Observed behaviour
The text "Ad" is not hidden.
Expected behaviour
The text "Ad" should be hidden.
Notes
qualifySelector() qualifies div .ad with prefix body span as div body span.ad. If the filter is changed to simply #?#span:-abp-properties(color: red), it works.
Related issues
Attachments (0)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Sorry, but we switched to GitLab. If this issue is still relevant, please file it again in the new issue tracker.