Link does not leave active state after releasing the mouse outside

by Gee Law

HTML

<a href="#" id="link">I am a link.</a>

CSS

#link:link
{
    background: red;
}
#link:visited
{
    background: green;
}
#link:hover
{
    background: blue;
}
#link:active
{
    background: black;
}