There was an infinite loop when parsing invalid text after having parsed a color in the border shorthand. See attached testcase for an example.