More robust implementation of current tag detection for Live CSS. Now uses the same logic as matching tag highlighting.