<!DOCTYPE html>

<link rel="stylesheet" href="../../styles.css" />

<div id="scroll" style="position: relative">
  <div id="reference">Ref</div>
</div>

<div id="floating">Float</div>

<script type="module">
  import {computePosition} from '../../dist/index.mjs';
  import {position, addEventListeners} from '../../utils.mjs';

  addEventListeners(() => {
    computePosition(reference, floating, {
      placement: 'right',
    }).then(position);
  });
</script>
