hunk.code_window: // Returns the width, height and offsets of the provided element relative to the
   // offsetParent
   export default (
     element: Element | VirtualElement,
     isFixed: boolean = false
   ): Rect => {
  
hunk.labels: keep keep keep keep keep replace keep
hunk.after_edit:   isFixed: boolean = false,
     // For the popper and arrow, we need to use their layout measurements before
     // any transforms. For the reference, we need to use composite measurements
     // after any transforms
     isLayout: boolean = true
  
hunk.file_path: src/dom-utils/getRectRelativeToOffsetParent.js
hunk.type: replace
file: <!DOCTYPE html> <title>Basic Visual Test</title>
  
  <style>
    #reference {
      position: absolute;
      bottom: 150px;
      right: 150px;
      width: 200px;
      height: 200px;
      background-color: red;
      box-shadow: inset 0 0 0 1px black;
    }
  
    #popper {
      position: absolute;
      top: 0;
      left: 0;
      width: 100px;
      height: 100px;
      background-color: rebeccapurple;
      box-shadow: inset 0 0 0 1px black;
    }
  </style>
  
  <div id="reference">Reference Box</div>
  <div id="popper">Popper Box</div>
  
  <script type="module">
    import { createPopper } from './dist/popper.js';
    const reference = document.querySelector('#reference');
    const popper = document.querySelector('#popper');
  
    window.instance = createPopper(reference, popper, {
      placement: 'right',
    });
  </script>
  