<!DOCTYPE html>

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

<div id="scroll">
  <div id="scroll" data-nested style="position: relative">
    <div id="reference" style="position: absolute; top: 100px">Ref</div>
    <div id="floating">Float</div>
  </div>
</div>

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

  addEventListeners(() => {
    computePosition(reference, floating, {
      placement: 'right',
  