.block__element, .block__element--modifier, .block__element--and-another { background-color: #000; color: #fff; } .block__element--modifier { color: #f00; } .block__element--and-another { color: #ff0; } .block__element[class*="--modifier"][class*="--and-another"], [class*="--modifier"][class*="--and-another"].block__element--modifier, [class*="--modifier"][class*="--and-another"].block__element--and-another { color: #00f; }