mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-12 06:06:37 +03:00
[codex] Improve detector false positive handling (#232)
* Improve detector false positive handling * Register docs integrity test * Fix clipped overflow decorative skip
This commit is contained in:
@@ -660,6 +660,7 @@ if (IS_BROWSER) {
|
||||
if (el.closest('.impeccable-overlay, .impeccable-label, .impeccable-banner, .impeccable-tooltip')) continue;
|
||||
if (el.closest('[id^="impeccable-live-"]')) continue;
|
||||
if (el === document.body || el === document.documentElement) continue;
|
||||
if (!isRenderedForBrowserRule(el)) continue;
|
||||
|
||||
const tag = el.tagName.toLowerCase();
|
||||
const style = getComputedStyle(el);
|
||||
@@ -1091,6 +1092,7 @@ if (IS_BROWSER) {
|
||||
return { ...candidate, status: 'unresolved', confidence: 'none', reason: 'stale selector' };
|
||||
}
|
||||
if (!el) return { ...candidate, status: 'unresolved', confidence: 'none', reason: 'missing element' };
|
||||
if (!isRenderedForBrowserRule(el)) return { ...candidate, status: 'unresolved', confidence: 'none', reason: 'hidden element' };
|
||||
|
||||
const blockingReason = (candidate.reasons || []).find(reason =>
|
||||
reason === 'background-clip text' ||
|
||||
|
||||
Reference in New Issue
Block a user