 style="position:relative">annotation</ruby>`;
  const rtBefore = document.querySelector('rt').getBoundingClientRect();
  document.querySelector('ruby').style.left = '100px';
  document.querySelector('rt').style.left = '10px';
  document.querySelector('rt').style.top = '-50px';
  const rtAfter = document.querySelector('rt').getBoundingClientRect();
  assert_equals(rtBefore.x + 110, rtAfter.x);
  assert_equals(rtBefore.y - 50, rtAfter.y);
}, 'Accumulate position:relative offsets');
</script>
</body>
