summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1364280-2b.html
blob: 8d8d8f48ecfadea6ba9a9c565a5bac18756779f2 (plain)
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<style>
  span { color: green; }
  div:not(:dir(rtl)) + 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>