rachnasutra 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -2
- package/CITATION.cff +2 -2
- package/Dockerfile +9 -0
- package/README.gu.md +35 -0
- package/README.md +14 -12
- package/ROADMAP.md +8 -1
- package/case-studies/clean-blog/fixes.diff +152 -152
- package/dist/audit.js +24 -6
- package/dist/browser.js +147 -0
- package/dist/cli.js +117 -17
- package/dist/report.js +23 -0
- package/dist/rules.js +176 -0
- package/dist/tw-color.js +36 -0
- package/docs/cli-reference.md +1 -1
- package/docs/compatibility.md +1 -1
- package/docs/status.md +13 -6
- package/documents/rachnasutra/00-overview.md +4 -4
- package/documents/rachnasutra/02-functional-specification.md +6 -6
- package/documents/rachnasutra/03-architecture.md +1 -1
- package/documents/rachnasutra/04-technical-reference.md +2 -2
- package/documents/rachnasutra/05-user-guide.md +1 -1
- package/documents/rachnasutra/06-audit-rules-reference.md +46 -1
- package/documents/rachnasutra/10-testing-and-evidence.md +22 -21
- package/documents/rachnasutra/11-deployment-and-ci.md +26 -6
- package/documents/rachnasutra/12-roadmap-and-status.md +13 -11
- package/documents/rachnasutra/13-maintainer-handbook.md +1 -1
- package/documents/rachnasutra/15-rule-examples.md +456 -0
- package/documents/rachnasutra/16-validation-and-benchmarks.md +3 -3
- package/examples/prime-session-example.md +2 -2
- package/fixtures/rule-cases.mjs +85 -70
- package/llms.txt +4 -3
- package/package.json +7 -2
- package/samples/broken-ui/latest.html +42 -30
- package/samples/broken-ui/latest.json +39 -14
- package/samples/broken-ui/latest.md +24 -13
- package/samples/broken-ui/latest.sarif +48 -10
- package/samples/good-ui/latest.html +1 -1
- package/samples/good-ui/latest.json +3 -3
- package/samples/good-ui/latest.md +2 -2
package/fixtures/rule-cases.mjs
CHANGED
|
@@ -1,70 +1,85 @@
|
|
|
1
|
-
// One failing and one passing input for every rule. Used by the tests and by scripts/gen-rule-examples.mjs,
|
|
2
|
-
// so the published examples are the same inputs that are asserted in CI.
|
|
3
|
-
const doc = (head, body) => `<!doctype html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<meta name="viewport" content="width=device-width, initial-scale=1">\n<title>T</title>\n${head}</head>\n<body>\n<main>\n${body}\n</main>\n</body>\n</html>\n`;
|
|
4
|
-
const colors = ['#111111', '#222222', '#333333', '#444444', '#555555', '#666666', '#777777', '#888888', '#999999', '#aaaaaa', '#bbbbbb', '#cccccc', '#dddddd'];
|
|
5
|
-
const manyColors = colors.map((c, i) => `.c${i}{border-color:${c}}`).join('\n');
|
|
6
|
-
|
|
7
|
-
export const RULE_CASES = [
|
|
8
|
-
{ rule: 'RS-A11Y-001', bad: { 'index.html': doc('', '<img src="a.png" width="10" height="10">') }, good: { 'index.html': doc('', '<img src="a.png" alt="Company logo" width="10" height="10">') } },
|
|
9
|
-
{ rule: 'RS-A11Y-002', bad: { 'index.html': '<!doctype html>\n<html>\n<head><title>T</title><meta name="viewport" content="width=device-width"></head>\n<body><main>x</main></body>\n</html>' }, good: { 'index.html': doc('', 'x') } },
|
|
10
|
-
{ rule: 'RS-A11Y-003', bad: { 'index.html': doc('', 'x').replace('initial-scale=1', 'initial-scale=1, user-scalable=no') }, good: { 'index.html': doc('', 'x') } },
|
|
11
|
-
{ rule: 'RS-A11Y-004', bad: { 'index.html': doc('', '<button class="x"></button>') }, good: { 'index.html': doc('', '<button class="x" aria-label="Close dialog"></button>') } },
|
|
12
|
-
{ rule: 'RS-A11Y-004', name: 'link', bad: { 'index.html': doc('', '<a href="/home"></a>') }, good: { 'index.html': doc('', '<a href="/home">Home</a>') } },
|
|
13
|
-
{ rule: 'RS-A11Y-005', bad: { 'index.html': doc('', '<input type="text" name="q">') }, good: { 'index.html': doc('', '<label for="q">Search</label><input id="q" type="text" name="q">') } },
|
|
14
|
-
{ rule: 'RS-A11Y-006', bad: { 'index.html': doc('', '<div tabindex="3">x</div>') }, good: { 'index.html': doc('', '<div tabindex="0">x</div>') } },
|
|
15
|
-
{ rule: 'RS-A11Y-007', bad: { 'index.html': doc('', '<div onclick="go()">Go</div>') }, good: { 'index.html': doc('', '<div onclick="go()" role="button" tabindex="0">Go</div>') } },
|
|
16
|
-
{ rule: 'RS-A11Y-008', bad: { 'index.html': '<!doctype html>\n<html lang="en">\n<head><meta name="viewport" content="width=device-width"></head>\n<body><main>x</main></body>\n</html>' }, good: { 'index.html': doc('', 'x') } },
|
|
17
|
-
{ rule: 'RS-A11Y-009', bad: { 'index.html': doc('', '<h1>Title</h1>\n<h3>Skipped</h3>') }, good: { 'index.html': doc('', '<h1>Title</h1>\n<h2>Section</h2>') } },
|
|
18
|
-
{ rule: 'RS-A11Y-010', bad: { 'a.css': 'a:focus { outline: none; }' }, good: { 'a.css': 'a:focus { outline: none; box-shadow: 0 0 0 3px #0b5cad; }' } },
|
|
19
|
-
{ rule: 'RS-A11Y-011', bad: { 'a.css': 'a:hover { color: #b00020; }' }, good: { 'a.css': 'a:hover { color: #b00020; }\na:focus-visible { outline: 2px solid #0b5cad; }' } },
|
|
20
|
-
{ rule: 'RS-A11Y-012', bad: { 'index.html': doc('', '<video autoplay src="a.mp4"></video>') }, good: { 'index.html': doc('', '<video autoplay muted src="a.mp4"></video>') } },
|
|
21
|
-
{ rule: 'RS-A11Y-013', bad: { 'a.css': '.note { color: #999999; background: #ffffff; }' }, good: { 'a.css': '.note { color: #595959; background: #ffffff; }' } },
|
|
22
|
-
{ rule: 'RS-A11Y-014', bad: { 'a.css': '.icon-btn { width: 16px; height: 16px; }' }, good: { 'a.css': '.icon-btn { width: 44px; height: 44px; }' } },
|
|
23
|
-
{ rule: 'RS-A11Y-015', bad: { 'index.html': '<!doctype html>\n<html lang="en">\n<head><title>T</title><meta name="viewport" content="width=device-width"></head>\n<body><p>x</p></body>\n</html>' }, good: { 'index.html': doc('', 'x') } },
|
|
24
|
-
{ rule: 'RS-
|
|
25
|
-
{ rule: 'RS-
|
|
26
|
-
{ rule: 'RS-
|
|
27
|
-
{ rule: 'RS-
|
|
28
|
-
{ rule: 'RS-
|
|
29
|
-
{ rule: 'RS-
|
|
30
|
-
{ rule: 'RS-
|
|
31
|
-
{ rule: 'RS-
|
|
32
|
-
{ rule: 'RS-
|
|
33
|
-
{ rule: 'RS-
|
|
34
|
-
{ rule: 'RS-
|
|
35
|
-
{ rule: 'RS-A11Y-
|
|
36
|
-
{ rule: 'RS-A11Y-
|
|
37
|
-
{ rule: 'RS-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
{ rule: 'RS-
|
|
43
|
-
{ rule: 'RS-
|
|
44
|
-
{ rule: 'RS-
|
|
45
|
-
{ rule: 'RS-
|
|
46
|
-
{ rule: 'RS-
|
|
47
|
-
{ rule: 'RS-
|
|
48
|
-
{ rule: 'RS-A11Y-
|
|
49
|
-
{ rule: 'RS-
|
|
50
|
-
{ rule: 'RS-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
{ rule: 'RS-A11Y-
|
|
56
|
-
{ rule: 'RS-A11Y-
|
|
57
|
-
{ rule: 'RS-A11Y-
|
|
58
|
-
{ rule: 'RS-A11Y-
|
|
59
|
-
{ rule: 'RS-A11Y-
|
|
60
|
-
{ rule: 'RS-A11Y-
|
|
61
|
-
{ rule: 'RS-A11Y-
|
|
62
|
-
{ rule: 'RS-
|
|
63
|
-
{ rule: 'RS-
|
|
64
|
-
{ rule: 'RS-
|
|
65
|
-
{ rule: 'RS-A11Y-
|
|
66
|
-
{ rule: 'RS-A11Y-
|
|
67
|
-
{ rule: 'RS-A11Y-
|
|
68
|
-
{ rule: 'RS-A11Y-
|
|
69
|
-
{ rule: 'RS-A11Y-
|
|
70
|
-
|
|
1
|
+
// One failing and one passing input for every rule. Used by the tests and by scripts/gen-rule-examples.mjs,
|
|
2
|
+
// so the published examples are the same inputs that are asserted in CI.
|
|
3
|
+
const doc = (head, body) => `<!doctype html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<meta name="viewport" content="width=device-width, initial-scale=1">\n<title>T</title>\n${head}</head>\n<body>\n<main>\n${body}\n</main>\n</body>\n</html>\n`;
|
|
4
|
+
const colors = ['#111111', '#222222', '#333333', '#444444', '#555555', '#666666', '#777777', '#888888', '#999999', '#aaaaaa', '#bbbbbb', '#cccccc', '#dddddd'];
|
|
5
|
+
const manyColors = colors.map((c, i) => `.c${i}{border-color:${c}}`).join('\n');
|
|
6
|
+
|
|
7
|
+
export const RULE_CASES = [
|
|
8
|
+
{ rule: 'RS-A11Y-001', bad: { 'index.html': doc('', '<img src="a.png" width="10" height="10">') }, good: { 'index.html': doc('', '<img src="a.png" alt="Company logo" width="10" height="10">') } },
|
|
9
|
+
{ rule: 'RS-A11Y-002', bad: { 'index.html': '<!doctype html>\n<html>\n<head><title>T</title><meta name="viewport" content="width=device-width"></head>\n<body><main>x</main></body>\n</html>' }, good: { 'index.html': doc('', 'x') } },
|
|
10
|
+
{ rule: 'RS-A11Y-003', bad: { 'index.html': doc('', 'x').replace('initial-scale=1', 'initial-scale=1, user-scalable=no') }, good: { 'index.html': doc('', 'x') } },
|
|
11
|
+
{ rule: 'RS-A11Y-004', bad: { 'index.html': doc('', '<button class="x"></button>') }, good: { 'index.html': doc('', '<button class="x" aria-label="Close dialog"></button>') } },
|
|
12
|
+
{ rule: 'RS-A11Y-004', name: 'link', bad: { 'index.html': doc('', '<a href="/home"></a>') }, good: { 'index.html': doc('', '<a href="/home">Home</a>') } },
|
|
13
|
+
{ rule: 'RS-A11Y-005', bad: { 'index.html': doc('', '<input type="text" name="q">') }, good: { 'index.html': doc('', '<label for="q">Search</label><input id="q" type="text" name="q">') } },
|
|
14
|
+
{ rule: 'RS-A11Y-006', bad: { 'index.html': doc('', '<div tabindex="3">x</div>') }, good: { 'index.html': doc('', '<div tabindex="0">x</div>') } },
|
|
15
|
+
{ rule: 'RS-A11Y-007', bad: { 'index.html': doc('', '<div onclick="go()">Go</div>') }, good: { 'index.html': doc('', '<div onclick="go()" role="button" tabindex="0">Go</div>') } },
|
|
16
|
+
{ rule: 'RS-A11Y-008', bad: { 'index.html': '<!doctype html>\n<html lang="en">\n<head><meta name="viewport" content="width=device-width"></head>\n<body><main>x</main></body>\n</html>' }, good: { 'index.html': doc('', 'x') } },
|
|
17
|
+
{ rule: 'RS-A11Y-009', bad: { 'index.html': doc('', '<h1>Title</h1>\n<h3>Skipped</h3>') }, good: { 'index.html': doc('', '<h1>Title</h1>\n<h2>Section</h2>') } },
|
|
18
|
+
{ rule: 'RS-A11Y-010', bad: { 'a.css': 'a:focus { outline: none; }' }, good: { 'a.css': 'a:focus { outline: none; box-shadow: 0 0 0 3px #0b5cad; }' } },
|
|
19
|
+
{ rule: 'RS-A11Y-011', bad: { 'a.css': 'a:hover { color: #b00020; }' }, good: { 'a.css': 'a:hover { color: #b00020; }\na:focus-visible { outline: 2px solid #0b5cad; }' } },
|
|
20
|
+
{ rule: 'RS-A11Y-012', bad: { 'index.html': doc('', '<video autoplay src="a.mp4"></video>') }, good: { 'index.html': doc('', '<video autoplay muted src="a.mp4"></video>') } },
|
|
21
|
+
{ rule: 'RS-A11Y-013', bad: { 'a.css': '.note { color: #999999; background: #ffffff; }' }, good: { 'a.css': '.note { color: #595959; background: #ffffff; }' } },
|
|
22
|
+
{ rule: 'RS-A11Y-014', bad: { 'a.css': '.icon-btn { width: 16px; height: 16px; }' }, good: { 'a.css': '.icon-btn { width: 44px; height: 44px; }' } },
|
|
23
|
+
{ rule: 'RS-A11Y-015', bad: { 'index.html': '<!doctype html>\n<html lang="en">\n<head><title>T</title><meta name="viewport" content="width=device-width"></head>\n<body><p>x</p></body>\n</html>' }, good: { 'index.html': doc('', 'x') } },
|
|
24
|
+
{ rule: 'RS-A11Y-001', name: 'role=img with no name', bad: { 'index.html': doc('', '<div role="img"></div>') }, good: { 'index.html': doc('', '<div role="img" aria-label="Sales chart"></div>') } },
|
|
25
|
+
{ rule: 'RS-A11Y-013', name: 'tailwind arbitrary hex pair', bad: { 'Card.tsx': 'export const Card = () => <p className="text-[#cccccc] bg-[#ffffff]">Price</p>;' }, good: { 'Card.tsx': 'export const Card = () => <p className="text-[#1a1a1a] bg-[#ffffff]">Price</p>;' } },
|
|
26
|
+
{ rule: 'RS-A11Y-013', name: 'jsx style object', bad: { 'Card.tsx': 'export const Card = () => <p style={{ color: "#cccccc", backgroundColor: "#ffffff" }}>Price</p>;' }, good: { 'Card.tsx': 'export const Card = () => <p style={{ color: "#1a1a1a", backgroundColor: "#ffffff" }}>Price</p>;' } },
|
|
27
|
+
{ rule: 'RS-A11Y-013', name: 'tailwind named colours', bad: { 'Card.tsx': 'export const Card = () => <p className="text-gray-400 bg-white">Price</p>;' }, good: { 'Card.tsx': 'export const Card = () => <p className="text-gray-900 bg-white">Price</p>;' } },
|
|
28
|
+
{ rule: 'RS-A11Y-013', name: 'css module file', bad: { 'button.module.css': '.price { color: #cccccc; background: #ffffff; }' }, good: { 'button.module.css': '.price { color: #1a1a1a; background: #ffffff; }' } },
|
|
29
|
+
{ rule: 'RS-A11Y-013', name: 'styled-components template', bad: { 'Button.tsx': 'const B = styled.button`color: #cccccc; background: #ffffff;`;' }, good: { 'Button.tsx': 'const B = styled.button`color: #1a1a1a; background: #ffffff;`;' } },
|
|
30
|
+
{ rule: 'RS-A11Y-016', bad: { 'index.html': doc('', '<label for="a">One</label><input id="a"><input id="a">') }, good: { 'index.html': doc('', '<label for="a">One</label><input id="a"><input id="b">') } },
|
|
31
|
+
{ rule: 'RS-A11Y-017', bad: { 'index.html': doc('', '<iframe src="pay.html"></iframe>') }, good: { 'index.html': doc('', '<iframe src="pay.html" title="Payment form"></iframe>') } },
|
|
32
|
+
{ rule: 'RS-A11Y-018', bad: { 'index.html': doc('', '<nav><a href="/home">Home</a></nav>') }, good: { 'index.html': doc('', '<a href="#main">Skip to content</a><nav><a href="/home">Home</a></nav>') } },
|
|
33
|
+
{ rule: 'RS-A11Y-019', bad: { 'index.html': doc('', '<label for="e">Email</label><input id="e" type="email">') }, good: { 'index.html': doc('', '<label for="e">Email</label><input id="e" type="email" autocomplete="email">') } },
|
|
34
|
+
{ rule: 'RS-A11Y-020', bad: { 'index.html': doc('', '<h2></h2>') }, good: { 'index.html': doc('', '<h2>Featured</h2>') } },
|
|
35
|
+
{ rule: 'RS-A11Y-021', bad: { 'a.css': 'button { background: #ffffff; border: 1px solid #dddddd; color: #1a1a1a; }' }, good: { 'a.css': 'button { background: #ffffff; border: 1px solid #767676; color: #1a1a1a; }' } },
|
|
36
|
+
{ rule: 'RS-A11Y-022', bad: { 'index.html': doc('', '<p lang="">Bonjour</p>') }, good: { 'index.html': doc('', '<p lang="fr">Bonjour</p>') } },
|
|
37
|
+
{ rule: 'RS-RESP-001', bad: { 'index.html': '<!doctype html>\n<html lang="en">\n<head><title>T</title></head>\n<body><main>x</main></body>\n</html>' }, good: { 'index.html': doc('', 'x') } },
|
|
38
|
+
{ rule: 'RS-RESP-002', bad: { 'a.css': '.hero { width: 1200px; }' }, good: { 'a.css': '.hero { width: 100%; max-width: 1200px; }' } },
|
|
39
|
+
{ rule: 'RS-RESP-003', bad: { 'index.html': doc('<link rel="stylesheet" href="a.css">', 'x'), 'a.css': '.a { color: #222222; }' }, good: { 'index.html': doc('<link rel="stylesheet" href="a.css">', 'x'), 'a.css': '.a { color: #222222; }\n@media (min-width: 40rem) { .a { color: #111111; } }' } },
|
|
40
|
+
{ rule: 'RS-VIS-001', bad: { 'a.css': '.legal { font-size: 10px; }' }, good: { 'a.css': '.legal { font-size: 14px; }' } },
|
|
41
|
+
{ rule: 'RS-PERF-001', bad: { 'index.html': doc('', '<img src="a.png" alt="">') }, good: { 'index.html': doc('', '<img src="a.png" alt="" width="10" height="10">') } },
|
|
42
|
+
{ rule: 'RS-PERF-002', bad: { 'index.html': doc('', 'x') }, badBinary: { 'big.png': 600 * 1024 }, good: { 'index.html': doc('', 'x') }, goodBinary: { 'small.png': 10 * 1024 } },
|
|
43
|
+
{ rule: 'RS-MOT-001', bad: { 'a.css': '.fade { transition: opacity .3s; }' }, good: { 'a.css': '.fade { transition: opacity .3s; }\n@media (prefers-reduced-motion: reduce) { .fade { transition: none; } }' } },
|
|
44
|
+
{ rule: 'RS-TOK-001', bad: { 'a.css': manyColors }, good: { 'a.css': `:root { --line: #dddddd; }\n${manyColors}` } },
|
|
45
|
+
{ rule: 'RS-CONT-001', bad: { 'index.html': doc('', '<a href="/pricing">click here</a>') }, good: { 'index.html': doc('', '<a href="/pricing">See pricing plans</a>') } },
|
|
46
|
+
{ rule: 'RS-CONT-002', bad: { 'index.html': doc('', '<p>Lorem ipsum dolor sit amet</p>') }, good: { 'index.html': doc('', '<p>Our team ships weekly.</p>') } },
|
|
47
|
+
{ rule: 'RS-TRUST-001', bad: { 'index.html': doc('', '<p>Hurry! Only 3 left in stock.</p>') }, good: { 'index.html': doc('', '<p>In stock.</p>') } },
|
|
48
|
+
{ rule: 'RS-A11Y-002', name: 'empty lang value', bad: { 'index.html': '<!doctype html>\n<html lang="">\n<head><title>T</title><meta name="viewport" content="width=device-width"></head>\n<body><main>x</main></body>\n</html>' }, good: { 'index.html': doc('', 'x') } },
|
|
49
|
+
{ rule: 'RS-A11Y-008', name: 'document without a head element', bad: { 'index.html': '<!doctype html>\n<html lang="en">\n<h1>No title anywhere</h1>\n</html>' }, good: { 'index.html': '<!doctype html>\n<html lang="en">\n<title>Has a title</title>\n<h1>Hello</h1>\n</html>' } },
|
|
50
|
+
{ rule: 'RS-A11Y-004', name: 'link whose only content is an empty-alt image', bad: { 'index.html': doc('', '<a href="/w3c"><img src="a.png" alt="" width="10" height="10"></a>') }, good: { 'index.html': doc('', '<a href="/w3c"><img src="a.png" alt="W3C home" width="10" height="10"></a>') } },
|
|
51
|
+
];
|
|
52
|
+
|
|
53
|
+
// Tricky inputs that must NOT produce a given rule (false-positive guards).
|
|
54
|
+
export const FALSE_POSITIVE_GUARDS = [
|
|
55
|
+
{ rule: 'RS-A11Y-001', name: 'prop spread may supply alt', files: { 'A.tsx': 'export const A = (p) => <img {...p} />;' } },
|
|
56
|
+
{ rule: 'RS-A11Y-005', name: 'input wrapped by label', files: { 'index.html': doc('', '<label>Name <input type="text"></label>') } },
|
|
57
|
+
{ rule: 'RS-A11Y-005', name: 'hidden and submit inputs need no label', files: { 'index.html': doc('', '<input type="hidden" name="t"><input type="submit" value="Send">') } },
|
|
58
|
+
{ rule: 'RS-A11Y-007', name: 'div with role and tabindex', files: { 'index.html': doc('', '<div onclick="x()" role="button" tabindex="0">x</div>') } },
|
|
59
|
+
{ rule: 'RS-A11Y-010', name: 'outline none on :focus-visible replacement', files: { 'a.css': 'button:focus:not(:focus-visible) { outline: none; }' } },
|
|
60
|
+
{ rule: 'RS-A11Y-013', name: 'large text uses 3:1 threshold', files: { 'a.css': '.big { color: #888888; background: #ffffff; font-size: 30px; }' } },
|
|
61
|
+
{ rule: 'RS-A11Y-013', name: 'exactly passing ratio 4.54:1', files: { 'a.css': '.ok { color: #767676; background: #ffffff; }' } },
|
|
62
|
+
{ rule: 'RS-RESP-002', name: 'width with max-width in same rule', files: { 'a.css': '.card { width: 900px; max-width: 100%; }' } },
|
|
63
|
+
{ rule: 'RS-CONT-001', name: 'descriptive link text containing the word here', files: { 'index.html': doc('', '<a href="/x">Download the report here for 2026</a>') } },
|
|
64
|
+
{ rule: 'RS-MOT-001', name: 'no animation at all', files: { 'a.css': '.a { color: #222222; }' } },
|
|
65
|
+
{ rule: 'RS-A11Y-004', name: 'button with text', files: { 'index.html': doc('', '<button>Save</button>') } },
|
|
66
|
+
{ rule: 'RS-A11Y-001', name: 'img named by title is not reported (ACT 23a2a8 passed example)', files: { 'index.html': doc('', '<img title="W3C logo" src="a.png" width="10" height="10">') } },
|
|
67
|
+
{ rule: 'RS-A11Y-001', name: 'img hidden from the accessibility tree', files: { 'index.html': doc('', '<img src="a.png" aria-hidden="true" width="10" height="10">') } },
|
|
68
|
+
{ rule: 'RS-A11Y-001', name: 'role=img hidden from the accessibility tree', files: { 'index.html': doc('', '<div role="img" aria-hidden="true"></div>') } },
|
|
69
|
+
{ rule: 'RS-A11Y-016', name: 'id inside a code sample', files: { 'index.html': doc('', '<pre><code><div id="a"></div><div id="a"></div></code></pre>') } },
|
|
70
|
+
{ rule: 'RS-A11Y-004', name: 'hidden button is not rendered', files: { 'index.html': doc('', '<button style="display: none;"></button>') } },
|
|
71
|
+
{ rule: 'RS-A11Y-013', name: 'text-shadow changes effective contrast, so the pair is not judged', files: { 'a.css': '.s { color: #000; background: #737373; text-shadow: white 0 0 3px; }' } },
|
|
72
|
+
{ rule: 'RS-A11Y-004', name: 'name supplied at runtime by data-l10n-id', files: { 'index.html': doc('', '<button type="button"><span data-l10n-id="save-label"></span></button>') } },
|
|
73
|
+
{ rule: 'RS-A11Y-005', name: 'file input nested in a labelled button', files: { 'index.html': doc('', '<button type="button"><span>Add file</span><input type="file"></button>') } },
|
|
74
|
+
{ rule: 'RS-A11Y-008', name: 'title may come from a template include', files: { 'index.html': '<!doctype html>\n<html lang="en">\n<head>\n{% include head.html %}\n</head>\n<body><main>x</main></body>\n</html>' } },
|
|
75
|
+
{ rule: 'RS-A11Y-002', name: '<html> inside a code sample is not a document', files: { 'index.html': '<p>Add a class to the root:</p>\n<pre><code><html class="x"></code></pre>\n{% highlight html %}<html class="x">{% endhighlight %}' } },
|
|
76
|
+
{ rule: 'RS-A11Y-010', name: ':active selector is not a focus style', files: { 'a.css': 'button:active { outline: none; }' } },
|
|
77
|
+
{ rule: 'RS-A11Y-010', name: 'comment before a nested SCSS selector is not part of the selector', files: { 'a.scss': '.card {\n // keep :focus behaviour\n &:active { outline: 0; }\n}' } },
|
|
78
|
+
{ rule: 'RS-A11Y-014', name: 'pseudo-element is not an interactive target', files: { 'a.css': '.btn::before { width: 16px; height: 16px; }' } },
|
|
79
|
+
{ rule: 'RS-A11Y-014', name: 'icon inside a larger control', files: { 'a.css': '.carousel-control-next-icon { width: 20px; height: 20px; }' } },
|
|
80
|
+
{ rule: 'RS-A11Y-015', name: 'main may live in the template content', files: { 'index.html': '<!doctype html>\n<html lang="en">\n<head><title>T</title><meta name="viewport" content="width=device-width"></head>\n<body>\n{{ content }}\n</body>\n</html>' } },
|
|
81
|
+
{ rule: 'RS-A11Y-015', name: 'fragment without html or head is not a document', files: { 'index.html': '<body>fragment</body>' } },
|
|
82
|
+
{ rule: 'RS-A11Y-004', name: 'button named by a label for=id', files: { 'index.html': doc('', '<button id="toggle" type="button"></button>\n<label for="toggle">Enable feature</label>') } },
|
|
83
|
+
{ rule: 'RS-A11Y-010', name: 'SCSS interpolation does not hide an :active selector', files: { 'a.scss': '.x {\n &:active,\n &.#{$prefix}is-active { outline: none; }\n}' } },
|
|
84
|
+
{ rule: 'RS-A11Y-014', name: 'spacer element is not interactive', files: { 'a.css': '.toolbarSpacer { width: 30px; height: 1px; }' } },
|
|
85
|
+
];
|
package/llms.txt
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
> Open-source UI/UX design engineering and audit agent. 13 portable Agent Skills (led by RachnaSutra Prime) plus a keyless, deterministic CLI for accessibility (WCAG 2.2 AA oriented), responsive design, design-system, content and performance review of front-end source code. Works with Claude Code, Cursor, OpenAI Codex, GitHub Copilot and Gemini CLI using the IDE's own model; no extra API key. Outputs JSON, Markdown, HTML and SARIF. Created by Vatsal Shah. Apache-2.0. Repository: https://github.com/shahvatsalofficial/rachnasutra
|
|
4
4
|
|
|
5
5
|
## Start here
|
|
6
|
+
- [Live documentation](https://shahvatsalofficial.github.io/rachnasutra/): searchable HTML site
|
|
6
7
|
- [README](README.md): overview, install, CLI, proof, FAQ, limits
|
|
7
8
|
- [Documentation overview](documents/rachnasutra/00-overview.md): index of the full documentation set
|
|
8
9
|
- [Executive summary](documents/rachnasutra/01-executive-summary.md): what it is, what is proven, what is not claimed
|
|
@@ -12,7 +13,7 @@
|
|
|
12
13
|
- [Architecture](documents/rachnasutra/03-architecture.md): components, data flow, design decisions
|
|
13
14
|
- [Technical reference](documents/rachnasutra/04-technical-reference.md): data model, algorithms, exit codes
|
|
14
15
|
- [User guide](documents/rachnasutra/05-user-guide.md): install, run, fix, verify, CI
|
|
15
|
-
- [Audit rules reference](documents/rachnasutra/06-audit-rules-reference.md): all
|
|
16
|
+
- [Audit rules reference](documents/rachnasutra/06-audit-rules-reference.md): all 33 rules with limits
|
|
16
17
|
- [Skills and agents](documents/rachnasutra/07-skills-and-agents.md): the 13 skills and orchestration
|
|
17
18
|
- [Security and privacy](documents/rachnasutra/08-security-and-privacy.md): threat model and controls
|
|
18
19
|
- [Legal and compliance](documents/rachnasutra/09-legal-and-compliance.md): licence, disclaimers, accessibility-law context
|
|
@@ -43,8 +44,8 @@
|
|
|
43
44
|
- Audit: `npx github:shahvatsalofficial/rachnasutra audit . --json`
|
|
44
45
|
- CI gate: `npx github:shahvatsalofficial/rachnasutra ci .` (exit 1 on confirmed high or critical findings)
|
|
45
46
|
- Read-only by default; no network, telemetry or model calls from the CLI; secrets redacted in reports.
|
|
46
|
-
-
|
|
47
|
+
- Default audit is static and offline. `audit --mode browser` runs when Playwright is installed and exits 3 when it is not. No result is invented.
|
|
47
48
|
- Not a WCAG, ADA or other conformance certification. No quality score is produced.
|
|
48
|
-
-
|
|
49
|
+
- 140 automated tests pass; sample runs and raw outputs are in documents/rachnasutra/evidence/.
|
|
49
50
|
- Validated against W3C ACT test cases (71% precision, 65% recall after fixes), compared with axe-core (which is more accurate), and audited on 12 public repositories; results and weaknesses are published in benchmarks/results/.
|
|
50
51
|
- AI IDE skill loading has not yet been verified in live hosts.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rachnasutra",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "RachnaSutra AI: open-source UI/UX design, accessibility and responsive audit agent skills for Claude Code, Cursor, Codex, Copilot and Gemini CLI, plus an evidence-first, keyless CLI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui-ux",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"homepage": "https://github.
|
|
30
|
+
"homepage": "https://shahvatsalofficial.github.io/rachnasutra/",
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
33
33
|
"url": "git+https://github.com/shahvatsalofficial/rachnasutra.git"
|
|
@@ -53,6 +53,8 @@
|
|
|
53
53
|
"examples",
|
|
54
54
|
"samples",
|
|
55
55
|
"README.md",
|
|
56
|
+
"README.gu.md",
|
|
57
|
+
"Dockerfile",
|
|
56
58
|
"LICENSE",
|
|
57
59
|
"NOTICE",
|
|
58
60
|
"AGENTS.md",
|
|
@@ -79,7 +81,10 @@
|
|
|
79
81
|
"prepublishOnly": "npm test && npm run verify"
|
|
80
82
|
},
|
|
81
83
|
"devDependencies": {
|
|
84
|
+
"@axe-core/playwright": "^4.11.0",
|
|
82
85
|
"@types/node": "^26.6.6",
|
|
86
|
+
"lighthouse": "^13.6.0",
|
|
87
|
+
"playwright": "^1.56.1",
|
|
83
88
|
"typescript": "^7.0.2"
|
|
84
89
|
}
|
|
85
90
|
}
|
|
@@ -23,7 +23,7 @@ a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-of
|
|
|
23
23
|
<body>
|
|
24
24
|
<main>
|
|
25
25
|
<h1>RachnaSutra AI audit report</h1>
|
|
26
|
-
<p class="muted">Static mode · read-only · 2026-11-
|
|
26
|
+
<p class="muted">Static mode · read-only · 2026-11-06T19:46:25.862Z · rachnasutra 0.5.1</p>
|
|
27
27
|
<h2>How to read this</h2>
|
|
28
28
|
<ul>
|
|
29
29
|
<li><strong>Confirmed</strong> means the tool saw this in the file. Fix it.</li>
|
|
@@ -35,13 +35,13 @@ a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-of
|
|
|
35
35
|
<div class="grid" role="list">
|
|
36
36
|
<div class="stat" role="listitem"><b>0</b>critical</div>
|
|
37
37
|
<div class="stat" role="listitem"><b>8</b>high</div>
|
|
38
|
-
<div class="stat" role="listitem"><b>
|
|
38
|
+
<div class="stat" role="listitem"><b>8</b>medium</div>
|
|
39
39
|
<div class="stat" role="listitem"><b>5</b>low</div>
|
|
40
40
|
<div class="stat" role="listitem"><b>1</b>info</div>
|
|
41
41
|
<div class="stat" role="listitem"><b>13</b>confirmed</div>
|
|
42
|
-
<div class="stat" role="listitem"><b>
|
|
42
|
+
<div class="stat" role="listitem"><b>9</b>review required</div>
|
|
43
43
|
</div>
|
|
44
|
-
<p>
|
|
44
|
+
<p>22 finding(s) across 2 scanned file(s). This static review does not certify WCAG conformance and gives no quality score because large areas were not evaluated.</p>
|
|
45
45
|
<h2>Fix these first</h2>
|
|
46
46
|
<ol><li><strong>Image has no alt attribute</strong> at <code>index.html:11</code>. Add a meaningful alt, or alt="" when the image is purely decorative.</li><li><strong>Viewport meta disables or limits zoom</strong> at <code>index.html:5</code>. Remove user-scalable=no and any maximum-scale below 2 from the viewport meta.</li><li><strong>Button has no accessible name</strong> at <code>index.html:13</code>. Add visible text or an aria-label describing the action.</li><li><strong>Click handler on non-interactive <div> without role or tabindex</strong> at <code>index.html:12</code>. Use a real <button> (or <a href>); if impossible, add role, tabindex="0" and key handlers.</li><li><strong>Focus indicator removed (button:focus, a:focus)</strong> at <code>styles.css:2</code>. Keep the default outline or provide a clearly visible :focus-visible style with 3:1 contrast.</li></ol>
|
|
47
47
|
<h2>Coverage</h2>
|
|
@@ -71,15 +71,16 @@ a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-of
|
|
|
71
71
|
<tr id="RS-0010"><th scope="row"><a href="#h-RS-0010">RS-0010</a></th><td><span class="sev sev-medium">medium</span></td><td>RS-A11Y-006</td><td>Positive tabindex overrides natural focus order</td><td><code>index.html:17</code></td><td>confirmed</td></tr>
|
|
72
72
|
<tr id="RS-0011"><th scope="row"><a href="#h-RS-0011">RS-0011</a></th><td><span class="sev sev-medium">medium</span></td><td>RS-A11Y-008</td><td>Document has no title</td><td><code>index.html:2</code></td><td>confirmed</td></tr>
|
|
73
73
|
<tr id="RS-0012"><th scope="row"><a href="#h-RS-0012">RS-0012</a></th><td><span class="sev sev-medium">medium</span></td><td>RS-A11Y-014</td><td>Interactive target smaller than 24x24 CSS px (.icon-btn)</td><td><code>styles.css:3</code></td><td>review-required</td></tr>
|
|
74
|
-
<tr id="RS-0013"><th scope="row"><a href="#h-RS-0013">RS-0013</a></th><td><span class="sev sev-medium">medium</span></td><td>RS-
|
|
75
|
-
<tr id="RS-0014"><th scope="row"><a href="#h-RS-0014">RS-0014</a></th><td><span class="sev sev-medium">medium</span></td><td>RS-
|
|
76
|
-
<tr id="RS-0015"><th scope="row"><a href="#h-RS-0015">RS-0015</a></th><td><span class="sev sev-medium">medium</span></td><td>RS-RESP-
|
|
77
|
-
<tr id="RS-0016"><th scope="row"><a href="#h-RS-0016">RS-0016</a></th><td><span class="sev sev-
|
|
78
|
-
<tr id="RS-0017"><th scope="row"><a href="#h-RS-0017">RS-0017</a></th><td><span class="sev sev-low">low</span></td><td>RS-A11Y-
|
|
79
|
-
<tr id="RS-0018"><th scope="row"><a href="#h-RS-0018">RS-0018</a></th><td><span class="sev sev-low">low</span></td><td>RS-
|
|
80
|
-
<tr id="RS-0019"><th scope="row"><a href="#h-RS-0019">RS-0019</a></th><td><span class="sev sev-low">low</span></td><td>RS-
|
|
81
|
-
<tr id="RS-0020"><th scope="row"><a href="#h-RS-0020">RS-0020</a></th><td><span class="sev sev-low">low</span></td><td>RS-
|
|
82
|
-
<tr id="RS-0021"><th scope="row"><a href="#h-RS-0021">RS-0021</a></th><td><span class="sev sev-
|
|
74
|
+
<tr id="RS-0013"><th scope="row"><a href="#h-RS-0013">RS-0013</a></th><td><span class="sev sev-medium">medium</span></td><td>RS-A11Y-019</td><td>email field has no autocomplete attribute</td><td><code>index.html:16</code></td><td>review-required</td></tr>
|
|
75
|
+
<tr id="RS-0014"><th scope="row"><a href="#h-RS-0014">RS-0014</a></th><td><span class="sev sev-medium">medium</span></td><td>RS-MOT-001</td><td>Animations or transitions exist but no prefers-reduced-motion handling</td><td><code>styles.css:6</code></td><td>confirmed</td></tr>
|
|
76
|
+
<tr id="RS-0015"><th scope="row"><a href="#h-RS-0015">RS-0015</a></th><td><span class="sev sev-medium">medium</span></td><td>RS-RESP-002</td><td>Fixed width 1200px can overflow narrow viewports</td><td><code>styles.css:1</code></td><td>review-required</td></tr>
|
|
77
|
+
<tr id="RS-0016"><th scope="row"><a href="#h-RS-0016">RS-0016</a></th><td><span class="sev sev-medium">medium</span></td><td>RS-RESP-003</td><td>No responsive CSS found (media/container queries, clamp, grid auto-fit, flex-wrap)</td><td><code>styles.css:1</code></td><td>review-required</td></tr>
|
|
78
|
+
<tr id="RS-0017"><th scope="row"><a href="#h-RS-0017">RS-0017</a></th><td><span class="sev sev-low">low</span></td><td>RS-A11Y-009</td><td>Heading level skips from h1 to h3</td><td><code>index.html:10</code></td><td>review-required</td></tr>
|
|
79
|
+
<tr id="RS-0018"><th scope="row"><a href="#h-RS-0018">RS-0018</a></th><td><span class="sev sev-low">low</span></td><td>RS-A11Y-015</td><td>No main landmark</td><td><code>index.html:8</code></td><td>review-required</td></tr>
|
|
80
|
+
<tr id="RS-0019"><th scope="row"><a href="#h-RS-0019">RS-0019</a></th><td><span class="sev sev-low">low</span></td><td>RS-CONT-001</td><td>Vague link text "click here"</td><td><code>index.html:14</code></td><td>confirmed</td></tr>
|
|
81
|
+
<tr id="RS-0020"><th scope="row"><a href="#h-RS-0020">RS-0020</a></th><td><span class="sev sev-low">low</span></td><td>RS-PERF-001</td><td>Image has no explicit width and height</td><td><code>index.html:11</code></td><td>review-required</td></tr>
|
|
82
|
+
<tr id="RS-0021"><th scope="row"><a href="#h-RS-0021">RS-0021</a></th><td><span class="sev sev-low">low</span></td><td>RS-VIS-001</td><td>Very small text (10px)</td><td><code>styles.css:4</code></td><td>confirmed</td></tr>
|
|
83
|
+
<tr id="RS-0022"><th scope="row"><a href="#h-RS-0022">RS-0022</a></th><td><span class="sev sev-info">info</span></td><td>RS-TRUST-001</td><td>Urgency or scarcity wording needs review</td><td><code>index.html:19</code></td><td>review-required</td></tr>
|
|
83
84
|
</tbody></table></div>
|
|
84
85
|
<h2>Details</h2>
|
|
85
86
|
<article class="card" aria-labelledby="h-RS-0001">
|
|
@@ -215,7 +216,18 @@ a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-of
|
|
|
215
216
|
<dt>Limitations</dt><dd>Padding may enlarge the real target; selector-name match is heuristic.</dd>
|
|
216
217
|
</dl></article>
|
|
217
218
|
<article class="card" aria-labelledby="h-RS-0013">
|
|
218
|
-
<h3 id="h-RS-0013">RS-0013 —
|
|
219
|
+
<h3 id="h-RS-0013">RS-0013 — email field has no autocomplete attribute</h3>
|
|
220
|
+
<dl>
|
|
221
|
+
<dt>Severity / confidence / status</dt><dd>medium / medium / review-required</dd>
|
|
222
|
+
<dt>Criterion</dt><dd>WCAG 2.2: 1.3.5 Identify Input Purpose</dd>
|
|
223
|
+
<dt>Evidence</dt><dd><code>index.html:16</code> <pre><input type="email" placeholder="Email"></pre></dd>
|
|
224
|
+
<dt>User impact</dt><dd>Browsers and password managers cannot fill the field, and users retype personal data.</dd>
|
|
225
|
+
<dt>Recommended fix</dt><dd>Add autocomplete="email".</dd>
|
|
226
|
+
<dt>Verification</dt><dd>Re-run the audit, then use the browser autofill menu on the field.</dd>
|
|
227
|
+
<dt>Limitations</dt><dd>Only type=email and type=tel are checked. Other personal fields need a human look.</dd>
|
|
228
|
+
</dl></article>
|
|
229
|
+
<article class="card" aria-labelledby="h-RS-0014">
|
|
230
|
+
<h3 id="h-RS-0014">RS-0014 — Animations or transitions exist but no prefers-reduced-motion handling</h3>
|
|
219
231
|
<dl>
|
|
220
232
|
<dt>Severity / confidence / status</dt><dd>medium / high / confirmed</dd>
|
|
221
233
|
<dt>Criterion</dt><dd>WCAG 2.2: 2.3.3 Animation from Interactions (AAA, best practice)</dd>
|
|
@@ -225,8 +237,8 @@ a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-of
|
|
|
225
237
|
<dt>Verification</dt><dd>Enable "reduce motion" in the OS and confirm motion stops.</dd>
|
|
226
238
|
<dt>Limitations</dt><dd>Motion may be handled in JavaScript; only CSS was scanned.</dd>
|
|
227
239
|
</dl></article>
|
|
228
|
-
<article class="card" aria-labelledby="h-RS-
|
|
229
|
-
<h3 id="h-RS-
|
|
240
|
+
<article class="card" aria-labelledby="h-RS-0015">
|
|
241
|
+
<h3 id="h-RS-0015">RS-0015 — Fixed width 1200px can overflow narrow viewports</h3>
|
|
230
242
|
<dl>
|
|
231
243
|
<dt>Severity / confidence / status</dt><dd>medium / medium / review-required</dd>
|
|
232
244
|
<dt>Criterion</dt><dd>WCAG 2.2: 1.4.10 Reflow</dd>
|
|
@@ -236,8 +248,8 @@ a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-of
|
|
|
236
248
|
<dt>Verification</dt><dd>Render at 320x568 and confirm no horizontal scroll.</dd>
|
|
237
249
|
<dt>Limitations</dt><dd>A parent container or media query may constrain the element; not rendered.</dd>
|
|
238
250
|
</dl></article>
|
|
239
|
-
<article class="card" aria-labelledby="h-RS-
|
|
240
|
-
<h3 id="h-RS-
|
|
251
|
+
<article class="card" aria-labelledby="h-RS-0016">
|
|
252
|
+
<h3 id="h-RS-0016">RS-0016 — No responsive CSS found (media/container queries, clamp, grid auto-fit, flex-wrap)</h3>
|
|
241
253
|
<dl>
|
|
242
254
|
<dt>Severity / confidence / status</dt><dd>medium / medium / review-required</dd>
|
|
243
255
|
|
|
@@ -247,8 +259,8 @@ a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-of
|
|
|
247
259
|
<dt>Verification</dt><dd>Render at 320, 390, 768, 1024 and 1440 widths and review each screenshot.</dd>
|
|
248
260
|
<dt>Limitations</dt><dd>CSS frameworks (Tailwind, Bootstrap) supply responsive rules not visible in source CSS.</dd>
|
|
249
261
|
</dl></article>
|
|
250
|
-
<article class="card" aria-labelledby="h-RS-
|
|
251
|
-
<h3 id="h-RS-
|
|
262
|
+
<article class="card" aria-labelledby="h-RS-0017">
|
|
263
|
+
<h3 id="h-RS-0017">RS-0017 — Heading level skips from h1 to h3</h3>
|
|
252
264
|
<dl>
|
|
253
265
|
<dt>Severity / confidence / status</dt><dd>low / medium / review-required</dd>
|
|
254
266
|
<dt>Criterion</dt><dd>WCAG 2.2: 1.3.1 Info and Relationships</dd>
|
|
@@ -258,8 +270,8 @@ a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-of
|
|
|
258
270
|
<dt>Verification</dt><dd>Inspect the heading outline in the browser accessibility tree.</dd>
|
|
259
271
|
<dt>Limitations</dt><dd>Heading order across included partials is not visible to a single-file scan.</dd>
|
|
260
272
|
</dl></article>
|
|
261
|
-
<article class="card" aria-labelledby="h-RS-
|
|
262
|
-
<h3 id="h-RS-
|
|
273
|
+
<article class="card" aria-labelledby="h-RS-0018">
|
|
274
|
+
<h3 id="h-RS-0018">RS-0018 — No main landmark</h3>
|
|
263
275
|
<dl>
|
|
264
276
|
<dt>Severity / confidence / status</dt><dd>low / medium / review-required</dd>
|
|
265
277
|
<dt>Criterion</dt><dd>WCAG 2.2: 1.3.1 Info and Relationships, 2.4.1 Bypass Blocks</dd>
|
|
@@ -269,8 +281,8 @@ a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-of
|
|
|
269
281
|
<dt>Verification</dt><dd>Check landmarks with a screen-reader landmark list or the browser accessibility tree.</dd>
|
|
270
282
|
<dt>Limitations</dt><dd>A shared layout file may provide <main> for this page.</dd>
|
|
271
283
|
</dl></article>
|
|
272
|
-
<article class="card" aria-labelledby="h-RS-
|
|
273
|
-
<h3 id="h-RS-
|
|
284
|
+
<article class="card" aria-labelledby="h-RS-0019">
|
|
285
|
+
<h3 id="h-RS-0019">RS-0019 — Vague link text "click here"</h3>
|
|
274
286
|
<dl>
|
|
275
287
|
<dt>Severity / confidence / status</dt><dd>low / high / confirmed</dd>
|
|
276
288
|
<dt>Criterion</dt><dd>WCAG 2.2: 2.4.4 Link Purpose (In Context)</dd>
|
|
@@ -280,8 +292,8 @@ a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-of
|
|
|
280
292
|
<dt>Verification</dt><dd>Re-run the audit; review the page link list.</dd>
|
|
281
293
|
<dt>Limitations</dt><dd>Surrounding context may make the purpose clear to sighted users.</dd>
|
|
282
294
|
</dl></article>
|
|
283
|
-
<article class="card" aria-labelledby="h-RS-
|
|
284
|
-
<h3 id="h-RS-
|
|
295
|
+
<article class="card" aria-labelledby="h-RS-0020">
|
|
296
|
+
<h3 id="h-RS-0020">RS-0020 — Image has no explicit width and height</h3>
|
|
285
297
|
<dl>
|
|
286
298
|
<dt>Severity / confidence / status</dt><dd>low / medium / review-required</dd>
|
|
287
299
|
|
|
@@ -291,8 +303,8 @@ a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-of
|
|
|
291
303
|
<dt>Verification</dt><dd>Measure CLS in a lab run (Lighthouse) before and after; compare field data if available.</dd>
|
|
292
304
|
<dt>Limitations</dt><dd>CSS elsewhere may already reserve the space; not measured at runtime.</dd>
|
|
293
305
|
</dl></article>
|
|
294
|
-
<article class="card" aria-labelledby="h-RS-
|
|
295
|
-
<h3 id="h-RS-
|
|
306
|
+
<article class="card" aria-labelledby="h-RS-0021">
|
|
307
|
+
<h3 id="h-RS-0021">RS-0021 — Very small text (10px)</h3>
|
|
296
308
|
<dl>
|
|
297
309
|
<dt>Severity / confidence / status</dt><dd>low / high / confirmed</dd>
|
|
298
310
|
<dt>Criterion</dt><dd>WCAG 2.2: 1.4.4 Resize Text (readability)</dd>
|
|
@@ -302,8 +314,8 @@ a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-of
|
|
|
302
314
|
<dt>Verification</dt><dd>View on a real phone at normal distance.</dd>
|
|
303
315
|
<dt>Limitations</dt><dd>Context (legal footers, labels) may justify small text; this is a readability signal.</dd>
|
|
304
316
|
</dl></article>
|
|
305
|
-
<article class="card" aria-labelledby="h-RS-
|
|
306
|
-
<h3 id="h-RS-
|
|
317
|
+
<article class="card" aria-labelledby="h-RS-0022">
|
|
318
|
+
<h3 id="h-RS-0022">RS-0022 — Urgency or scarcity wording needs review</h3>
|
|
307
319
|
<dl>
|
|
308
320
|
<dt>Severity / confidence / status</dt><dd>info / low / review-required</dd>
|
|
309
321
|
|