<!DOCTYPE html> <style> span { color: green } </style> <body dir="rtl"> <div dir=""></div> <span>This should be green</span> </body>