mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-19 17:46:36 +03:00
Preserve unresolved linked CSS selectors
AI assistance disclosure: Codex implemented and verified this fix under maintainer direction.
This commit is contained in:
@@ -1409,6 +1409,11 @@ describe('detectUrl — browser-only fixtures', () => {
|
||||
assert.equal(stripes.length, 1, JSON.stringify({ linkedFindings, linkedCssom }));
|
||||
assert.equal(stripes[0].severity, 'advisory');
|
||||
assert.equal(stripes[0].advisory, true);
|
||||
assert.equal(
|
||||
linkedFindings.some(finding => finding.type === 'bounce-easing'),
|
||||
true,
|
||||
JSON.stringify({ linkedFindings, linkedCssom }),
|
||||
);
|
||||
assert.equal(linkedFindings.some(finding => finding.type === 'codex-grid-background'), false);
|
||||
assert.equal(linkedFindings.some(finding => finding.type === 'layout-transition'), false);
|
||||
await linkedPage.close();
|
||||
|
||||
@@ -6,6 +6,19 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* A valid hostless pseudo-element selector cannot be queried through the DOM
|
||||
selector API. It must remain in the corpus rather than count as unused. */
|
||||
main > ::before {
|
||||
content: "Rendered pseudo-element text";
|
||||
display: block;
|
||||
width: 160px;
|
||||
animation: bounce-linked-pseudo 1s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes bounce-linked-pseudo {
|
||||
50% { transform: translateY(2px); }
|
||||
}
|
||||
|
||||
/* 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) {
|
||||
|
||||
Reference in New Issue
Block a user