Clean up and add a basic test for the HTML5 legacy color parse.