AdguardTeam / AdguardTeam/ExtendedCss

Extension incorrectly handles `:has()` selectors — ignores `> :not()` part after `:has()`

未關閉
#190 0 則留言 0 個 reaction 已指派 1 人 已被 @maximtop 認領 在 GitHub 檢視
Priority: P3
主要語言
TypeScript
星號
71
分支
11
PR 合併指標
30 天內沒有已合併 PR

描述

STR:

- Add rule: `sauto.cz#?#body ul:has(.c-item) > :not(.c-item)`
- Open: `https://www.sauto.cz/inzerce/osobni/?palivo=hybridni%2Cvodik&razeni=rok-vyroby&strana=3`
- Check which elements are hidden

Expected:
Only direct children of `ul` that are NOT `.c-item` are hidden. `.c-item` elements remain visible.

Actual:
Extension applies selector as body `ul:has(.c-item)`, ignoring `> :not(.c-item)`. Entire list is hidden, breaking the page.
Note:
Same rule works correctly in desktop app. Issue is specific to extended css.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。