Opened 4 months ago

Last modified 4 months ago

#7403 new defect

:-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:
Cc: amr, agiammarchi, hfiguiere Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):



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:

      div .ad {
        color: red;
      <span class="ad">Ad</span>

Observed behaviour

The text "Ad" is not hidden.

Expected behaviour

The text "Ad" should be hidden.


qualifySelector() qualifies div .ad with prefix body span as div body If the filter is changed to simply #?#span:-abp-properties(color: red), it works.

Related issues


Change History (1)

comment:1 Changed 4 months ago by mjethani

  • Cc amr agiammarchi hfiguiere added
Note: See TracTickets for help on using tickets.