Files
pbakaus_impeccable/tests/fixtures/antipatterns/linked-url-patterns.css
T
Paul Bakaus 312e627eea Filter linked CSS to rendered selectors
Flatten linked stylesheet grouping rules and collect only selector rules that target the live DOM, preventing unused grouped and selector-less patterns from leaking into URL findings.

AI assistance disclosure: Implemented and verified with Codex under maintainer direction.
2026-09-02 09:18:52 -07:00

21 lines
622 B
CSS

@media (min-width: 1px) {
.flag-linked-stripes {
width: 160px;
height: 80px;
background: repeating-linear-gradient(45deg, #eee, #eee 10px, #fafafa 10px, #fafafa 20px);
}
}
/* Shipped but unused selectors must remain outside live URL findings, even
inside grouping rules or when their check does not serialize a selector. */
@supports (display: grid) {
.unused-linked-grid {
background: linear-gradient(90deg, #d9d9d9 1px, transparent 1px), linear-gradient(180deg, #d9d9d9 1px, transparent 1px);
background-size: 72px 72px;
}
}
.unused-linked-transition {
transition: width 200ms ease;
}