gecko-dev/layout/reftests/bugs/1364280-2a.html

10 строки
326 B
HTML

<!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>