Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<style>
span { color: red; }
div:dir(rtl) + span { color: green; }
</style>
<body dir="rtl" onload="window.oldColor = getComputedStyle(document.querySelector('span')).color; document.querySelector('[dir=auto]').setAttribute('dir', '')">
<div dir="auto"></div>
<span>This should be green</span>
</body>