Legacy HTML colour parsing, step by step

An interactive walkthrough of the HTML Standard's rules for parsing a legacy colour value (§2.3.6), the algorithm behind bgcolor, <font color>, and friends. Type anything: every string that isn't empty or "transparent" produces a colour.