summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1364280-2c.html
blob: db8a2f2d80e95808d1c9e146d2df1d3f7a6c3864 (plain)
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<style>
  span { color: green; }
  div[dir="auto"]:dir(ltr) + span { color: red; }
</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>