diff --git a/packages/compiler/src/a11y.test.ts b/packages/compiler/src/a11y.test.ts
new file mode 100644
index 0000000..7ca255e
--- /dev/null
+++ b/packages/compiler/src/a11y.test.ts
@@ -0,0 +1,307 @@
+// ============================================================================
+// a11y.test.ts — Tests for compile-time accessibility checking
+// ============================================================================
+
+import { describe, it, expect } from 'vitest';
+import { parseTemplate } from './template-compiler';
+import { checkA11y } from './a11y';
+import { compile } from './index';
+
+// Helper: parse and check in one call.
+function check(template: string, options?: { disable?: string[] }) {
+ const ast = parseTemplate(template);
+ return checkA11y(ast, options);
+}
+
+// ---------------------------------------------------------------------------
+// img-alt
+// ---------------------------------------------------------------------------
+
+describe('img-alt', () => {
+ it('warns on without alt', () => {
+ const w = check('
');
+ expect(w).toHaveLength(1);
+ expect(w[0].rule).toBe('img-alt');
+ });
+
+ it('passes with static alt', () => {
+ expect(check('
')).toHaveLength(0);
+ });
+
+ it('passes with bound :alt', () => {
+ expect(check('
')).toHaveLength(0);
+ });
+
+ it('passes with aria-label', () => {
+ expect(check('
')).toHaveLength(0);
+ });
+
+ it('passes with role="presentation" (decorative)', () => {
+ expect(check('
')).toHaveLength(0);
+ });
+});
+
+// ---------------------------------------------------------------------------
+// click-keyboard
+// ---------------------------------------------------------------------------
+
+describe('click-keyboard', () => {
+ it('warns on non-interactive element with @click but no keyboard handler', () => {
+ const w = check('