FiltersRegistry icon indicating copy to clipboard operation
FiltersRegistry copied to clipboard

Bad rule with nested uBO modifier ':matches-media(...)'

Open 105th opened this issue 8 months ago • 8 comments

Prerequisites

  • [x] This problem is not related to filtering issues. Otherwise, you should read this article;
  • [x] You're using an up-to-date version of the problematic filter;

Problem description

During converting filters we noticed error:

failed to process rule: '[$path=/^((?!^/$).)*$/]dawn.fi#$#.header:not(:matches-media((min-width: 750px))) + div[class] + div[class] .mobile-top-ad { margin: -10px auto !important }' due to: uBO modifier ':matches-media(...)' cannot be nested
Stack trace:
AdblockSyntaxError: uBO modifier ':matches-media(...)' cannot be nested

Problematic rule is in the filter 233 - https://github.com/AdguardTeam/FiltersRegistry/blob/316be41f24afcf42db489865890cea0298fccc4d/platforms/extension/chromium-mv3/filters/233.txt#L22

Proposed solution

Fix rule please :)

Privacy

  • [x] I agree to follow this condition

105th avatar Jul 09 '25 21:07 105th