- You have to press a special combination of keys on a keyboard.
- Then type a secret password.
A lot of little known features and tricks is combined here to pull this off, like HTML’s
pattern attributes, as well as
:valid in CSS—not to mention the custom property toggle trick.
That’s… wow. And yet, look how very little code it is.Tags: :not, :placeholder-shown, :valid, css, css tricks, form validation, forms, frontend, Link