Opened on 03/25/2019 at 05:23:25 PM

Closed on 08/29/2019 at 05:43:52 PM

#7402 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 an identical 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 (last modified by mjethani)

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>   
      body .ad {
        color: red;
      }   
    </style>
  </head> 
  <body>    
    <span class="ad">Ad</span>
  </body> 
</html> 

Observed behaviour

The text "Ad" is not hidden.

Expected behaviour

The text "Ad" should be hidden.

Notes

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

Related issues

#7403

Possibly #7359

Attachments (0)

Change History (3)

comment:1 Changed on 03/25/2019 at 05:26:15 PM by mjethani

  • Summary changed from :-abp-properties() does not work when using a compound selector to select an element whose styles are specified also using a compound selector to :-abp-properties() does not work when using a compound selector to select an element whose styles are specified also using a compound selector containing an identical first simple selector

comment:2 Changed on 03/25/2019 at 05:33:58 PM by mjethani

  • Description modified (diff)

comment:3 Changed on 08/29/2019 at 05:43:52 PM by sebastian

  • Keywords closed-in-favor-of-gitlab added
  • Resolution set to rejected
  • Status changed from new to closed

Sorry, but we switched to GitLab. If this issue is still relevant, please file it again in the new issue tracker.

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none).
 
Note: See TracTickets for help on using tickets.