Despite the attribute value bloat
wouldn’t having group names made available for CSS be enough?
I can’t really see the benefit outweighing the cost of implementing hierarchy, settings, and the code that would be involved for doing anything more complicated than that for the purpose of adding flair.