added :focus support for magic selectors closes #1278