I wouldn't suggest using so many spans like the example, however it's just a proof of concept. There are still many bugs that can arise when trying to apply CSS in this manner. (For example altering text-decoration types).
.foo, .bar, .baz { font-size : 2em; /* attribute base class for A */}.foo, .bar { font-weight : bold; /* attribute class A */}.foo { color : green; /* attribute class B */}
/* Multi-unset compound selector combinations, such as the one that follows, ARE NOT NECESSARY because of the higher specificity of each individual compound selectors listed above. This keeps things simple. */.composite.no-background-color.no-color.no-margin-left {background-color: unset;color: unset;margin-left: unset}