Would I use a write-only HTML sanitizer for untrusted HTML: No!
Would I care to review CSS, if my site "looks" good? No!
The challenge becomes: how can we enforce invariants/abstractions etc without inspecting the code.
Type systems, model checking, static analysis. Could become new power tools.
But sound design probably still goes far.