Implementing RTL using html[dir="rtl"] attribute detection