Fix committed in the trunk, revision 10610.
Thanks for the patches and the test file (committed as well in the test directory).
As you noticed in the bug description, currentColor and ActiveBorder are very difficult to parse here. I'm going to close the reoort because it fixes what can be fixed with numerical values. Feel free to open a different report for the remaining issues.