This commit is contained in:
FastD committed 2026-09-14 01:30:04 +03:00
1 parent d08c3e030e
commit f04c5128bd
30 files changed
+14283 -3386

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
f=variants/variant-b.html
echo "=== A11Y (landmarks/aria/keyboard/reduced-motion/focus) ==="
for p in 'skip-link' '<main' 'aria-labelledby' 'aria-expanded' 'aria-modal' 'prefers-reduced-motion' ':focus-visible' 'role="dialog"' 'aria-hidden'; do
printf "%-22s %s\n" "$p" "$(grep -c "$p" "$f")"
done
echo "=== form target + buttons ==="
printf "%-22s %s\n" 'id="contacts"' "$(grep -c 'id="contacts"' "$f")"
printf "%-22s %s\n" '<label' "$(grep -c '<label' "$f")"
printf "%-22s %s\n" '<button' "$(grep -c '<button' "$f")"
printf "%-22s %s\n" 'required' "$(grep -c 'required' "$f")"
echo "=== heading hierarchy ==="
printf "h1=%s h2=%s h3=%s\n" "$(grep -c '<h1' "$f")" "$(grep -c '<h2' "$f")" "$(grep -c '<h3' "$f")"
echo "=== touch targets 44px ==="
printf "min-height:44 %s\n" "$(grep -c 'min-height:44' "$f")"
echo "=== reduced-motion gates ==="
grep -c 'prefers-reduced-motion' "$f"