The last case could be covered by the `dir` pseudo-class.
.button-icon:dir(rtl) {
transform: scaleX(-1);
}
However, it's not yet supported in Chromium browsers, so for now the attribute selector is as close as you can get.