Auto detect pseudo class and pseudo elements