AdguardTeam / AdguardTeam/CoreLibs
Generic cosmetic rules are not applied to some iframes
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 52
- Forks
- 10
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
It looks like the generic cosmetic rules are not applied if the `iframe` `height`/`width` is less than a certain value.
Steps to reproduce:
1. Add this rule:
```adblock
##h1
```
2. Go to - https://example.org/
3. Run in browser console:
```js
(() => {
const frame = document.createElement('iframe');
frame.src = 'https://example.com/';
frame.width = '500px';
frame.height = '200px';
document.body.appendChild(frame);
})();
```
`h1` element with text `Example Domain` should be hidden by this rule - `##h1`, but it doesn't work.
It seems that it works correctly if the value of `height` is greater than `200`, like `201`, or `width` is greater than `500`, like `501`.
Screenshots


AdGuard for Windows version 7.12 nightly 10 (build 4171, CL 1.10.189)
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.