[css mode] Slightly better heuristic for unrecognized props in nested declarations

Issue #2922