NASA Power-of-10 — Web Edition (W1–W10)

Ten rules for safety-critical web development. Derived from audit of paper/ and docs/ sites.

RuleSummary
W1No JS-gated visibility. CSS content readable without JS. JS enhances via class toggle.
W2No static imports for optional deps. Use dynamic import() in try/catch.
W3Print must override every dark-theme color. WCAG AA (4.5:1) against white.
W4Negative margins must match parent padding at exact breakpoint.
W5Every overflow: auto must declare scrollbar policy (scrollbar-width + ::-webkit-scrollbar).
W6Every template variable escaped via escape_html() at interpolation site.
W7Every @media breakpoint boundary-tested (±1px). Flex: flex-wrap. Grid: auto-fill/minmax().
W8No dead selectors, no orphaned JS. Zero-debt applies to web code.
W9Content readable without JS. <noscript> for JS-required widgets.
W10Every z-index scoped inside explicit stacking context (isolation: isolate).

Compliance Record (2026-03-14)

All 10 rules: PASS. See AGENT.md history for per-rule evidence.