The problem in the OP's case is that text-transform: capitalize does not affect uppercase letters at all - it only converts the first letter of each word from lower to upper case. (Note that this is not the same as title case in English usage: text-transform: capitalize affects _all_ words, including articles and prepositions.)