4 ms·
Part of the problem is, that it's highly undesirable having to mark every node as rtl, when it should just be inerited. Eventually (https://developer.mozilla.o
by realityking 11y ago
Part of the problem is, that it's highly undesirable having to mark every node as rtl, when it should just be inerited.
Eventually (https://developer.mozilla.org/en-US/docs/Web/CSS/%3Adir https://developer.mozilla.org/en-US/docs/Web/CSS/%3Adir) will be able to write it like this:
.some-class {
&:dir(rtl) { margin-right: 1em; }
&:dir(ltr) { margin-left: 1em; }
}
Right now it's probably easiest to load an additional stylesheet when a RTL language is used.